Skip to content

Commit

Permalink
Added git pulls before commits to avoid push failures
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Dec 23, 2024
1 parent 20036d7 commit 3535bfb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ jobs:
- name: Push changes to KudoAI/chatgpt.js
run: |
cd ${{ github.workspace }}/KudoAI/chatgpt.js
git pull # again to sync w/ concurrent workflow updates
git commit -a -n -m "$ESCAPED_MSG ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js]" || true
git push
- name: Push changes to KudoAI/chatgpt.js-chrome-starter
run: |
cd ${{ github.workspace }}/KudoAI/chatgpt.js-chrome-starter
git pull # again to sync w/ concurrent workflow updates
git commit -a -n -m "$ESCAPED_MSG ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js]" || true
git push
1 change: 1 addition & 0 deletions .github/workflows/sync-chrome-starter-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
- name: Push changes to KudoAI/chatgpt.js-chrome-starter
run: |
cd ${{ github.workspace }}/KudoAI/chatgpt.js-chrome-starter
git pull # again to sync w/ concurrent workflow updates
git add .
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js]" || true
git push
1 change: 1 addition & 0 deletions .github/workflows/sync-en-readme-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
- name: Push changes to KudoAI/chatgpt.js
run: |
cd ${{ github.workspace }}/KudoAI/chatgpt.js
git pull # again to sync w/ concurrent workflow updates
git add .
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from ${{ env.SYNC_SRC }}]" || true
git push
1 change: 1 addition & 0 deletions .github/workflows/sync-greasemonkey-starter-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
- name: Push changes to KudoAI/chatgpt.js-greasemonkey-starter
run: |
cd ${{ github.workspace }}/KudoAI/chatgpt.js-greasemonkey-starter
git pull # again to sync w/ concurrent workflow updates
git add .
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js]" || true
git push

0 comments on commit 3535bfb

Please sign in to comment.