123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- name: visual diff
- on:
-
-
-
-
- workflow_run:
- workflows:
- - acceptance
- types:
- - completed
- jobs:
- files-changed:
- name: detect what files changed
- runs-on: ubuntu-20.04
- timeout-minutes: 3
-
- outputs:
- acceptance: ${{ steps.changes.outputs.acceptance }}
- steps:
- - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- - name: Check for files changed
- uses: getsentry/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
- id: changes
- with:
- token: ${{ github.token }}
- filters: .github/file-filters.yml
- visual-diff:
- needs: files-changed
-
- if: github.event.workflow_run.head_repository.full_name != 'getsentry/sentry' && needs.files-changed.outputs.acceptance == 'true'
- runs-on: ubuntu-20.04
- timeout-minutes: 20
- steps:
- - name: Diff snapshots
- id: visual-snapshots-diff
- uses: getsentry/action-visual-snapshot@d08945864bd75129863897062b8c1687f1600a2d
- with:
- api-token: ${{ secrets.VISUAL_SNAPSHOT_SECRET }}
- gcs-bucket: 'sentry-visual-snapshots'
- gcp-service-account-key: ${{ secrets.SNAPSHOT_GOOGLE_SERVICE_ACCOUNT_KEY }}
|