File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Release
22
33on :
44 push :
5+ # Ignore merge queue branches (matches primer/react configuration)
6+ branches-ignore :
7+ - ' gh-readonly-queue/**'
58 tags-ignore :
69 - ' **'
710 workflow_dispatch :
@@ -19,7 +22,7 @@ permissions:
1922
2023jobs :
2124 release-main :
22- if : ${{ github.repository == 'primer/brand' && github. ref_name == 'main' }}
25+ if : github.ref_name == 'main'
2326 name : Main
2427 runs-on : ubuntu-latest
2528 steps :
5962 GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
6063
6164 release-next-minor :
62- if : ${{ github.repository == 'primer/brand' && github. ref_name == 'next-minor' }}
65+ if : github.ref_name == 'next-minor'
6366 name : Next minor
6467 runs-on : ubuntu-latest
6568 steps :
99102 GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
100103
101104 release-candidate :
102- if : ${{ github.repository == 'primer/brand' && github. ref_name == 'changeset-release/main' }}
105+ if : github.ref_name == 'changeset-release/main'
103106 name : Candidate
104107 runs-on : ubuntu-latest
105108 steps :
@@ -145,7 +148,7 @@ jobs:
145148 })
146149
147150 release-candidate-next-minor :
148- if : ${{ github.repository == 'primer/brand' && github. ref_name == 'changeset-release/next-minor' }}
151+ if : github.ref_name == 'changeset-release/next-minor'
149152 name : Next minor candidate (@next-minor)
150153 runs-on : ubuntu-latest
151154 steps :
@@ -197,7 +200,7 @@ jobs:
197200 })
198201
199202 release-canary :
200- if : ${{ github.repository == 'primer/brand ' && github.ref_name != 'main ' && github.ref_name != 'next-minor ' && !startsWith( github.ref_name, 'changeset-release/') }}
203+ if : github.ref_name != 'main ' && github.ref_name != 'next-minor ' && github.ref_name != 'changeset-release/main ' && github.ref_name != 'changeset-release/next-minor'
201204
202205 name : Canary
203206 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments