|
@@ -309,15 +309,23 @@ jobs:
|
|
# workflows that generate artifacts succeed
|
|
# workflows that generate artifacts succeed
|
|
needs: [acceptance, frontend, chartcuterie]
|
|
needs: [acceptance, frontend, chartcuterie]
|
|
name: triggers visual snapshot
|
|
name: triggers visual snapshot
|
|
- # Do not execute on forks or on master
|
|
|
|
- if: github.head_repository.full_name == 'getsentry/sentry' && github.ref != 'refs/heads/master'
|
|
|
|
|
|
+ # This is necessary since a failed/skipped dependent job would cause this job to be skipped
|
|
|
|
+ if: always()
|
|
runs-on: ubuntu-20.04
|
|
runs-on: ubuntu-20.04
|
|
timeout-minutes: 20
|
|
timeout-minutes: 20
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
|
+ # If any jobs we depend on fail, we will fail since this checks triggers Visual Snapshots which is a required check
|
|
|
|
+ - name: Check for failures
|
|
|
|
+ if: contains(needs.*.result, 'failure')
|
|
|
|
+ run: |
|
|
|
|
+ echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1
|
|
|
|
+
|
|
- name: Diff snapshots
|
|
- name: Diff snapshots
|
|
id: visual-snapshots-diff
|
|
id: visual-snapshots-diff
|
|
uses: getsentry/action-visual-snapshot@v2
|
|
uses: getsentry/action-visual-snapshot@v2
|
|
|
|
+ # Do not execute on forks or on master. Forks are handled in visual-diff.yml
|
|
|
|
+ if: github.head_repository.full_name == 'getsentry/sentry' && github.ref != 'refs/heads/master'
|
|
with:
|
|
with:
|
|
api-token: ${{ secrets.VISUAL_SNAPSHOT_SECRET }}
|
|
api-token: ${{ secrets.VISUAL_SNAPSHOT_SECRET }}
|
|
gcs-bucket: 'sentry-visual-snapshots'
|
|
gcs-bucket: 'sentry-visual-snapshots'
|