Skip to content

Commit 611cdd4

Browse files
ci: support VRT snapshots in conflict resolver and fix 403 errors
- Updated `.github/conflict-resolver.yml` to include a strategy for Playwright snapshots (`**/*.spec.ts-snapshots/*.png`) using 'theirs'. - Updated `.github/workflows/conflict-resolver.yml` to use a more robust token fallback (`PAT_TOKEN || ARI_PAT || GITHUB_TOKEN`) for `actions/checkout` and `GH_TOKEN` to resolve 403 Permission Denied errors during git push operations. Co-authored-by: arii <342438+arii@users.noreply.github.com>
1 parent 4090c4b commit 611cdd4

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/conflict-resolver.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ rules:
1616
strategy: 'ours'
1717
- paths: '*.generated.js'
1818
strategy: 'ours'
19+
20+
# For Playwright VRT snapshots, prefer the incoming version from the feature branch
21+
- paths: '**/*.spec.ts-snapshots/*.png'
22+
strategy: 'theirs'

.github/workflows/conflict-resolver.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
with:
5858
ref: ${{ env.SOURCE }}
5959
fetch-depth: 0
60-
token: ${{ secrets.ARI_PAT || secrets.GITHUB_TOKEN }}
60+
token: ${{ secrets.PAT_TOKEN || secrets.ARI_PAT || secrets.GITHUB_TOKEN }}
6161

6262
- name: Validate branches
6363
id: validate_branches
@@ -118,7 +118,7 @@ jobs:
118118
- name: Trigger Gemini Orchestrator
119119
if: steps.validate_branches.outputs.skipped != 'true' && steps.resolve.outputs.unresolved-files == '' && env.PR_NUMBER && env.PR_NUMBER != '0'
120120
env:
121-
GH_TOKEN: ${{ secrets.ARI_PAT || secrets.GITHUB_TOKEN }}
121+
GH_TOKEN: ${{ secrets.PAT_TOKEN || secrets.ARI_PAT || secrets.GITHUB_TOKEN }}
122122
HEAD_SHA: ${{ steps.commit_push.outputs.resolved_sha }}
123123
BASE_SHA: ${{ steps.validate_branches.outputs.base_sha }}
124124
run: |

0 commit comments

Comments
 (0)