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 91e207a + ce7621f commit 5271a80Copy full SHA for 5271a80
.github/workflows/update-image.yml
@@ -33,14 +33,22 @@ jobs:
33
run: echo -n $IMAGE > $FILE
34
- name: cat the files
35
run: cat ${{ inputs.file }}
36
- - name: Commit and push files new file
+ - name: Commit the files
37
env:
38
SUBJECT: ${{ inputs.subject }}
39
BODY: ${{ inputs.body }}
40
run: |
41
git config --local user.email "action@github.com"
42
git config --local user.name "GitHub Actions Bot"
43
- git pull
44
git add -A
45
git commit -m "$SUBJECT" -m "$BODY"
46
- git push
+ - name: pull and push the files
+ 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