Skip to content

Commit 5271a80

Browse files
authored
Merge pull request #27 from mlibrary/update-image-retries
update-image retries pushing image
2 parents 91e207a + ce7621f commit 5271a80

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/update-image.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,22 @@ jobs:
3333
run: echo -n $IMAGE > $FILE
3434
- name: cat the files
3535
run: cat ${{ inputs.file }}
36-
- name: Commit and push files new file
36+
- name: Commit the files
3737
env:
3838
SUBJECT: ${{ inputs.subject }}
3939
BODY: ${{ inputs.body }}
4040
run: |
4141
git config --local user.email "action@github.com"
4242
git config --local user.name "GitHub Actions Bot"
43-
git pull
4443
git add -A
4544
git commit -m "$SUBJECT" -m "$BODY"
46-
git push
45+
- name: pull and push the files
46+
uses: nick-fields/retry@v3
47+
with:
48+
timeout_seconds: 30
49+
retry_wait_seconds: 30
50+
retry_on: error
51+
max_attempts: 5
52+
command: |
53+
git pull --rebase
54+
git push

0 commit comments

Comments
 (0)