mirror of
https://github.com/fkie-cad/nvd-json-data-feeds.git
synced 2025-07-09 16:05:11 +00:00
add release monitoring action
This commit is contained in:
parent
c95e7ad265
commit
60abd776a6
24
.github/workflows/monitor_release.yml
vendored
Normal file
24
.github/workflows/monitor_release.yml
vendored
Normal 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 }}
|
Loading…
x
Reference in New Issue
Block a user