Skip to content

Commit 2c68b4d

Browse files
committed
Changed anti ping pong to use commit msg, added --rebase to git pull, moved after commit to narrow race win
1 parent cbc7473 commit 2c68b4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/sync-changes-to-ai-web-extensions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
if: (github.repository == 'adamlui/perplexity-omnibox') && (github.event.commits[0].committer.username != 'kudo-sync-bot')
10+
if: (github.repository == 'adamlui/perplexity-omnibox') && !contains(github.event.head_commit.message, '[auto-sync]')
1111
runs-on: ubuntu-24.04
1212
permissions:
1313
contents: read
@@ -57,6 +57,6 @@ jobs:
5757
- name: Push changes to adamlui/ai-web-extensions
5858
run: |
5959
cd ${{ github.workspace }}/adamlui/ai-web-extensions
60-
git add .
61-
git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from https://github.com/adamlui/perplexity-omnibox]" || true
60+
git add . && git commit -n -m "$ESCAPED_MSG ↞ [auto-sync from https://github.com/adamlui/perplexity-omnibox]" || true
61+
git pull --rebase
6262
git push

0 commit comments

Comments
 (0)