Skip to content

[Draft] Add GitHub Actions schedule to ensure images are refreshed every 2 weeks #1215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/refresh.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Refresh Non-appservice Images

on:
# Images are refreshed at least once every two weeks:
schedule:
- cron: "0 */336 * * 1" # every 336 hours (14 days) on Mondays

# Also enable the custom 'refresh' trigger:
repository_dispatch:
types: [refresh]

Expand Down Expand Up @@ -30,4 +35,4 @@ jobs:
./verify-republish-pipeline.sh ${{ github.event.client_payload.targetTag }}
git push origin "refresh/${{ github.event.client_payload.targetTag }}-refresh" --force
env:
GITHUB_TOKEN: ${{ secrets.PIPELINE_ADMIN }}
GITHUB_TOKEN: ${{ secrets.PIPELINE_ADMIN }}