Skip to content

Testing Percy on branch cand-dash-hv3 #5648

Testing Percy on branch cand-dash-hv3

Testing Percy on branch cand-dash-hv3 #5648

Workflow file for this run

# See .github/PERCY.md for when Percy runs, the watched-paths list, and how to force a run.
name: Percy testing on PRs from same repo
run-name: Testing Percy on branch ${{ github.head_ref }}
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
- ready_for_review
- labeled
- unlabeled
concurrency:
group: percy-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
decide:
name: Decide whether to run Percy
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository
permissions:
contents: read
pull-requests: read
outputs:
should_run: ${{ steps.gate.outputs.should_run }}
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: .github/actions/percy-gate
sparse-checkout-cone-mode: false
persist-credentials: false
- id: gate
uses: ./.github/actions/percy-gate
with:
mode: pr
snapshot:
name: Take Percy snapshots
runs-on: ubuntu-latest
needs: decide
if: needs.decide.result == 'success' && needs.decide.outputs.should_run == 'true'
permissions:
contents: read
steps:
- name: Checkout SCM
uses: actions/checkout@v4
- uses: ./.github/actions/percy-snapshot
with:
branch_name: ${{ github.head_ref }}
commitsh: ${{ github.sha }}
percy_token_write: ${{ secrets.PERCY_TOKEN_WRITE }}