Combine examples for Percy #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |