Skip to content

Commit c5c0b9b

Browse files
committed
2 parents 312c6e3 + 96969d1 commit c5c0b9b

45 files changed

Lines changed: 4546 additions & 1166 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 0 additions & 507 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 'Percy Exec'
2+
description: 'Run a command with Percy, or skip Percy for fork PRs (no token access)'
3+
4+
inputs:
5+
command:
6+
description: 'The command to run (e.g., "pytest --headless tests/")'
7+
required: true
8+
percy-token:
9+
description: 'Percy token (pass secrets.PERCY_TOKEN)'
10+
required: false
11+
default: ''
12+
13+
runs:
14+
using: 'composite'
15+
steps:
16+
- name: Run with Percy
17+
if: inputs.percy-token != ''
18+
shell: bash
19+
env:
20+
PERCY_TOKEN: ${{ inputs.percy-token }}
21+
run: npx percy exec -- ${{ inputs.command }}
22+
23+
- name: Run without Percy (fork PR)
24+
if: inputs.percy-token == ''
25+
shell: bash
26+
run: |
27+
echo "::notice::Skipping Percy (no token available - likely a fork PR)"
28+
${{ inputs.command }}

0 commit comments

Comments
 (0)