Skip to content

Commit 9c0c7e1

Browse files
committed
keepalive: split the step that creates and pushes a commit into two
The next commit will skip the commit creation under certain circumstances, which will be more obvious when those steps are separate. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 5c4668f commit 9c0c7e1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/keepalive.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ jobs:
1717
- uses: actions/checkout@v4
1818
with:
1919
persist-credentials: 'true'
20-
- name: Create and push a commit
20+
- name: Create a commit
2121
run: |
2222
mkdir -p .github/cached
2323
file='.github/cached/keepalive.txt'
2424
date >$file
2525
git add "$file"
26-
git commit -m "workflow keepalive" &&
26+
git commit -m "workflow keepalive"
27+
- name: Push changes
28+
run: |
2729
git push origin HEAD </dev/null || {
2830
for i in 1 2 3 4 5
2931
do

0 commit comments

Comments
 (0)