We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 039ebd7 + 580b58a commit 9ea769eCopy full SHA for 9ea769e
.github/workflows/keepalive.yml
@@ -21,6 +21,7 @@ jobs:
21
id: merge
22
if: github.event.repository.fork == true
23
run: |
24
+ git fetch --unshallow origin &&
25
git fetch https://github.com/gitgitgadget/gitgitgadget-workflows HEAD &&
26
if test 0 = $(git rev-list --count HEAD..FETCH_HEAD)
27
then
@@ -32,7 +33,8 @@ jobs:
32
33
id: commit
34
if: steps.merge.outputs.result != 'merged'
35
- if test 0 -lt $(git rev-list --count --since=3.weeks.ago HEAD)
36
+ if test workflow_dispatch != '${{ github.event_name }}' &&
37
+ test 0 -lt $(git rev-list --count --since=3.weeks.ago HEAD)
38
39
echo "::notice::No need to keep alive, there were commits in the last three weeks"
40
echo "result=skip-push" >>$GITHUB_OUTPUT
0 commit comments