Skip to content

Commit 7e4cebe

Browse files
committed
Make push contingent on successful commit
1 parent edf2c30 commit 7e4cebe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,12 @@ jobs:
121121
- name: 'Commit changes'
122122
run: |
123123
git add . && git commit -m "Deploy: ${{ github.sha }}"
124+
continue_on_error: true
124125
timeout-minutes: 10
125126

126127
# Push changes:
127128
- name: 'Push changes'
129+
if: success()
128130
run: |
129131
git push "https://$GITHUB_ACTOR:[email protected]/${{ github.repository }}.git"
130132
timeout-minutes: 10

0 commit comments

Comments
 (0)