Skip to content

Commit

Permalink
wip! publish on a schedule, every 5 minutes
Browse files Browse the repository at this point in the history
currently takes ~3m to run, so should be ok every 5.  the concurrency
group will ensure it doesn't stomp on itself, but it also means if it
starts taking longer than 5m to run then things will start queueing up
and going further out of date since we can't choose to cancel new jobs
just let them go pending.  maybe should address that!

adding ref to the concurrency group ensures we can still run this on PR
branches, etc.
  • Loading branch information
tsibley committed Feb 14, 2024
1 parent 75cf365 commit 25f549f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name: publish

on:
schedule:
- cron: '*/5 * * * *'
push:
branches:
# XXX FIXME
Expand All @@ -15,7 +17,7 @@ permissions:
id-token: write

concurrency:
group: ${{ github.workflow }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
Expand Down

0 comments on commit 25f549f

Please sign in to comment.