Skip to content

Commit

Permalink
Merge pull request #27 from mlibrary/update-image-retries
Browse files Browse the repository at this point in the history
update-image retries pushing image
  • Loading branch information
niquerio authored Jan 30, 2025
2 parents 91e207a + ce7621f commit 5271a80
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/update-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,22 @@ jobs:
run: echo -n $IMAGE > $FILE
- name: cat the files
run: cat ${{ inputs.file }}
- name: Commit and push files new file
- name: Commit the files
env:
SUBJECT: ${{ inputs.subject }}
BODY: ${{ inputs.body }}
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Actions Bot"
git pull
git add -A
git commit -m "$SUBJECT" -m "$BODY"
git push
- name: pull and push the files
uses: nick-fields/retry@v3
with:
timeout_seconds: 30
retry_wait_seconds: 30
retry_on: error
max_attempts: 5
command: |
git pull --rebase
git push

0 comments on commit 5271a80

Please sign in to comment.