ci: update visual-regression diff build config (#46353)

This commit is contained in:
vagusX 2023-12-09 23:54:58 +08:00 committed by GitHub
parent 8d7e0bc922
commit 6e8108a40a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View File

@ -4,6 +4,7 @@ name: 👀 Visual Regression Diff Build
on:
pull_request:
branches: [master, feature]
types: [opened, synchronize, reopened]
# Cancel prev CI if new commit come

View File

@ -55,8 +55,7 @@ jobs:
issues: write # for actions-cool/maintain-one-comment to modify or create issue comments
pull-requests: write # for actions-cool/maintain-one-comment to modify or create PR comments
runs-on: ubuntu-latest
needs: upstream-workflow-summary
if: github.event.workflow_run.event == 'push_request' && github.event.push_request.head.ref == 'master'
needs: [upstream-workflow-summary]
steps:
# We need get persist-index first
- name: download image snapshot artifact

View File

@ -7,10 +7,9 @@
name: 👀 Visual Regression Diff Start
on:
workflow_run:
workflows: ["👀 Visual Regression Diff Build"]
types:
- in_progress
pull_request:
branches: [master, feature]
types: [opened, synchronize, reopened]
permissions:
contents: read