Skip to content

Check Updates Periodically #11

Check Updates Periodically

Check Updates Periodically #11

name: Check Updates Periodically
on:
schedule:
- cron: "0 16 * * 1,4"
push:
branches: ["main"]
jobs:
update-version-list:
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v4
- name: Check updates
id: check_updates
run: |
chmod +x ./.github/UpdateVersionList
./.github/UpdateVersionList -o manifest.md
if [ -s manifest.md ]; then
HAS_UPDATES=true
echo "Updates found"
else
HAS_UPDATES=false
echo "Already up to date"
fi
echo "HAS_UPDATES=$HAS_UPDATES" >> $GITHUB_OUTPUT
- name: Update manifest body
if: ${{ steps.check_updates.outputs.HAS_UPDATES == 'true' }}
uses: ncipollo/release-action@v1
with:
name: "manifest"
tag: "manifest"
allowUpdates: true
bodyFile: "manifest.md"
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true