Skip to content

Commit 092e6c9

Browse files
committed
attempt to trigger canary by simplifying the workflow
1 parent 1993c94 commit 092e6c9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Release
22

33
on:
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

2023
jobs:
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:
@@ -59,7 +62,7 @@ jobs:
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:
@@ -99,7 +102,7 @@ jobs:
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

0 commit comments

Comments
 (0)