visual diff #998
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
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 }} |