Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Keep scheduled workflows alive

on:
schedule:
- cron: "23 19 3,17 * *" # 7:23pm on every 3rd and 17th of the month
- cron: "23 19 * * 0" # 7:23pm on every Sunday
workflow_dispatch:

env:
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
if: steps.merge.outputs.result != 'merged'
run: |
if test workflow_dispatch != '${{ github.event_name }}' &&
test 0 -lt $(git rev-list --count --since=3.weeks.ago HEAD)
test 0 -lt $(git rev-list --count --since=${{ github.event.repository.fork == true && '4' || '3' }}.weeks.ago HEAD)
then
echo "::notice::No need to keep alive, there were commits in the last three weeks"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this message be more specific? If I understand this correctly (stop laughing!) the notice will be issued more frequently for four weeks.

echo "result=skip-push" >>$GITHUB_OUTPUT
Expand Down