Skip to content

Combine examples for Percy #45

Combine examples for Percy

Combine examples for Percy #45

# This workflow runs Percy against non-draft PRs that have changes in relevant examples filepaths.
name: "Percy (pushed)"
on:
pull_request:
branches:
- main
paths:
- "templates/docs/examples/**"
- "scss/**"
types:
- opened
- synchronize
jobs:
copy_artifact:
name: Copy changed files to GHA artifact
# Ignore draft PRS and PRs with the Percy label
# If we run tests against PRs with the Percy label, we will run tests twice (test is also ran by the labelling workflow)
if: ${{ !github.event.pull_request.draft && !contains(github.event.pull_request.labels.*.name, vars.PERCY_TEST_REQUESTED_LABEL_NAME) }}
uses: ./.github/workflows/percy-prepare.yml
with:
pr_number: ${{ github.event.number }}
repository: ${{ github.repository }}
commitsh: ${{ github.event.pull_request.head.sha }}
# Completion should trigger `pr-percy-snapshots` workflow.