File tree Expand file tree Collapse file tree
.playwright/screenshots/snapshots.test.ts-snapshots/primer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 permissions :
1616 contents : read
1717 issues : write
18- pull-requests : read
18+ pull-requests : write
1919 steps :
2020 - name : Checkout repository
2121 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Original file line number Diff line number Diff line change @@ -63,12 +63,14 @@ jobs:
6363 BRANCH="${GITHUB_EVENT_PULL_REQUEST_HEAD_REF}"
6464 git config user.name "github-actions[bot]"
6565 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
66+ git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
6667 git stash push -u -m "pre-auto-commit" || true
6768 git fetch origin "$BRANCH" --depth=1
6869 git checkout "$BRANCH"
6970 git reset --hard "origin/$BRANCH"
7071 git stash pop || true
7172 env :
73+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7274 GITHUB_EVENT_PULL_REQUEST_HEAD_REF : ${{ github.event.pull_request.head.ref }}
7375 - id : auto-commit
7476 if : ${{ github.event.pull_request.head.repo.full_name == github.repository }}
7779 commit_message : Generating component snapshots
7880 file_pattern : .playwright/screenshots/**/*.png .playwright/screenshots/**/*.yml
7981 push_options : --force-with-lease
82+ token : ${{ secrets.GITHUB_TOKEN }}
8083 - name : " Changes detected"
8184 if : steps.auto-commit.outputs.changes_detected == 'true'
8285 uses : phulsechinmay/rewritable-pr-comment@a1b041997fa84ec3e524ee9dee5ba0b5f4e73604 # v0.3.0
You can’t perform that action at this time.
0 commit comments