Skip to content

visual diff

visual diff #998

Workflow file for this run

name: visual diff
on:
# This allows PRs opened from forks to execute the Visual Snapshots
# since secrets are not passed to workflows when triggered via forks
# Using workflow_run is less preferred since it executes even when jobs
# do not pass
workflow_run:
workflows:
- acceptance
types:
- completed
jobs:
visual-diff:
# This is the opposite condition as acceptance.yml/visual-diff
if: github.head_repository.full_name != 'getsentry/sentry'
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- name: Diff snapshots
id: visual-snapshots-diff
uses: getsentry/action-visual-snapshot@v2
with:
api-token: ${{ secrets.VISUAL_SNAPSHOT_SECRET }}
gcs-bucket: 'sentry-visual-snapshots'
gcp-service-account-key: ${{ secrets.SNAPSHOT_GOOGLE_SERVICE_ACCOUNT_KEY }}