Skip to content

Commit

Permalink
ci: add metadata update monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tprasadtp committed Jun 23, 2024
1 parent 80a6db0 commit 4d7d901
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ jobs:
- name: Push Metadata (if on master)
working-directory: protonwire-api
if: github.ref == 'refs/heads/master'
if:
run: |
git add --all
git commit -m "Updated at - $(date)"
git push -u origin master
- name: Ping URL
if: ${{ github.event_name == 'schedule' && github.ref == 'refs/heads/master' }}
run: curl -X POST -sfL ${{ secrets.METADATA_UPDATE_PING_URL }}
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
[![version](https://img.shields.io/github/v/tag/tprasadtp/protonvpn-docker?label=version&sort=semver&logo=semver&labelColor=3a3a3a&include_prereleases)](https://github.com/tprasadtp/protonvpn-docker/releases)
[![license](https://img.shields.io/github/license/tprasadtp/protonvpn-docker?logo=github&labelColor=3A3A3A)](https://github.com/tprasadtp/protonvpn-docker/blob/master/LICENSE)
[![stars](https://img.shields.io/github/stars/tprasadtp/protonvpn-docker?logo=github&labelColor=3a3a3a&style=flat)](https://github.com/tprasadtp/protonvpn-docker/stargazers/)
[![slsa-badge][slsa-badge]][slsa-verify-docs]
[![cosign-badge][cosign-badge]][cosign-verify-docs]

[![actions-metadata](https://github.com/tprasadtp/protonvpn-docker/actions/workflows/metadata.yml/badge.svg)](https://github.com/tprasadtp/protonvpn-docker/actions/workflows/metadata.yml)
[![metadata-refresh](https://img.shields.io/badge/dynamic/json?label=metadata&query=timestamp&url=https%3A%2F%2Fprotonwire-api.vercel.app&logo=protonvpn&labelColor=3a3a3a&logoColor=white&color=7f50a6)](https://protonwire-api.vercel.app/)
[![metadata-servers](https://img.shields.io/badge/dynamic/json?label=servers&query=server_count&url=https%3A%2F%2Fprotonwire-api.vercel.app&logo=protonvpn&labelColor=3a3a3a&logoColor=white&color=7f50a6)](https://protonwire-api.vercel.app/)
[![slsa-badge][slsa-badge]][slsa-verify-docs]
[![cosign-badge][cosign-badge]][cosign-verify-docs]
[![api-status](https://uptime.betterstack.com/status-badges/v2/monitor/1en46.svg)](https://protonwire.betteruptime.com/)


</div>
Expand Down

0 comments on commit 4d7d901

Please sign in to comment.