[🔥AUDIT🔥] Fix GitHub workflow to check for release PRs (#2367) #2665
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: Chromatic - Push | |
on: | |
push: | |
branches: | |
- main | |
- 'dependabot/**' | |
jobs: | |
# ------- Dependabot PRs -------- | |
chromatic_dependabot: | |
# (if) Run this step on dependabot PRs. | |
if: github.actor == 'dependabot[bot]' | |
name: Chromatic - Skip on dependabot PRs (push) | |
uses: ./.github/workflows/chromatic-build.yml | |
with: | |
target: 'bot' | |
secrets: | |
projectToken: ${{ secrets.CHROMATIC_APP_CODE }} | |
# ------- main branch -------- | |
chromatic_main: | |
# (else) Run this step on the main branch. | |
if: github.ref_name == 'main' | |
name: Chromatic - Auto-approve on main (push) | |
uses: ./.github/workflows/chromatic-build.yml | |
with: | |
target: 'main' | |
secrets: | |
projectToken: ${{ secrets.CHROMATIC_APP_CODE }} |