Merge branch 'feature/add_monitoring'

This commit is contained in:
René Helmke 2023-12-14 16:36:20 +01:00
commit 546ae3b95c

24
.github/workflows/monitor_release.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: monitor-release
on:
schedule:
- cron: "30 16 * * *"
workflow_dispatch: {}
jobs:
monitor-release:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- run: |
latest_release=$(git describe --abbrev=0 --tags | grep -oP "\d+\.\d+\.\d+")
cur=$(date +"%Y.%m.%d")
if [ "$latest_release" != "$cur" ]; then
>&2 echo "Error: Daily release failed!"
exit 100
fi
exit 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY: ${{ github.repository }}
BRANCH_NAME: ${{ github.ref_name }}