fix: spacing issue on small screens #3966
Workflow file for this run
This file contains hidden or 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
| name: Percy testing on PRs from forks | ||
| run-name: "Testing Percy on fork PR #${{ github.event.pull_request.number }}" | ||
| # This workflow handles Percy testing for PRs from forks securely | ||
| # It uses pull_request_target to access secrets while checking out the PR code | ||
| on: | ||
| pull_request_target: | ||
| branches: | ||
| - main | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
| - ready_for_review | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| jobs: | ||
| snapshot: | ||
| name: Take Percy snapshots | ||
| runs-on: ubuntu-latest | ||
| needs: security-check | ||
| # Ensure we only run for forks (internal PRs use a different workflow) | ||
| if: github.event.pull_request.head.repo.full_name != github.repository | ||
| # The environment "percy-testing" handles the approval gate | ||
| environment: percy-testing | ||
| steps: | ||
| - name: Checkout Trusted Action | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| path: trusted-logic | ||
| persist-credentials: false | ||
| - name: Checkout PR code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
| ref: ${{ github.event.pull_request.head.sha }} | ||
| path: untrusted-pr-code | ||
| persist-credentials: false | ||
| - uses: ./trusted-logic/.github/actions/percy-snapshot | ||
| with: | ||
| project_root: ./untrusted-pr-code | ||
| pr_number: ${{ github.event.pull_request.number }} | ||
| branch_name: ${{ github.event.pull_request.head.ref }} | ||
| commitsh: ${{ github.event.pull_request.head.sha }} | ||
| percy_token_write: ${{ secrets.PERCY_TOKEN_WRITE }} | ||