@@ -10,8 +10,14 @@ concurrency:
10
10
cancel-in-progress : true
11
11
12
12
jobs :
13
+ log-event :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Log GitHub event
17
+ run : echo ${{ toJson(github.event) }}
18
+
13
19
build :
14
- if : ${{ always() && github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
20
+ if : ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
15
21
runs-on : ubuntu-latest
16
22
17
23
steps :
@@ -63,176 +69,176 @@ jobs:
63
69
name : github-pages
64
70
path : docs/public
65
71
66
- deploy-preview :
67
- if : ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
68
- needs : build
69
- permissions :
70
- pages : write
71
- id-token : write
72
- environment :
73
- name : github-pages
74
- url : ${{ steps.deployment.outputs.page_url }}
75
- outputs :
76
- deployment_url : ${{ steps.deployment.outputs.page_url }}
77
- runs-on : ubuntu-latest
78
- steps :
79
- - name : Deploy to GitHub Pages
80
- id : deployment
81
- uses : actions/deploy-pages@v4
82
- with :
83
- preview : true
72
+ # deploy-preview:
73
+ # if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
74
+ # needs: build
75
+ # permissions:
76
+ # pages: write
77
+ # id-token: write
78
+ # environment:
79
+ # name: github-pages
80
+ # url: ${{ steps.deployment.outputs.page_url }}
81
+ # outputs:
82
+ # deployment_url: ${{ steps.deployment.outputs.page_url }}
83
+ # runs-on: ubuntu-latest
84
+ # steps:
85
+ # - name: Deploy to GitHub Pages
86
+ # id: deployment
87
+ # uses: actions/deploy-pages@v4
88
+ # with:
89
+ # preview: true
84
90
85
- deploy-storybook :
86
- name : Preview Storybook
87
- if : ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
88
- needs : deploy-preview
89
- permissions :
90
- deployments : write
91
- runs-on : ubuntu-latest
92
- steps :
93
-
94
- name : Create GitHub deployment for storybook
95
- id : storybook
96
- with :
97
- token : ${{ secrets.GITHUB_TOKEN }}
98
- environment : storybook-preview-${{ github.event.workflow_run.event.number }}
99
- environment-url : ' ${{ needs.deploy-preview.outputs.deployment_url }}storybook'
100
- - name : Update storybook deployment status (success)
101
- if : success()
102
-
103
- with :
104
- token : ${{ secrets.GITHUB_TOKEN }}
105
- environment-url : ' ${{ needs.deploy-preview.outputs.deployment_url }}storybook'
106
- state : ' success'
107
- deployment-id : ${{ steps.storybook.outputs.deployment_id }}
108
- - name : Update storybook deployment status (failure)
109
- if : failure()
110
-
111
- with :
112
- token : ${{ secrets.GITHUB_TOKEN }}
113
- state : ' failure'
114
- deployment-id : ${{ steps.storybook.outputs.deployment_id }}
91
+ # deploy-storybook:
92
+ # name: Preview Storybook
93
+ # if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
94
+ # needs: deploy-preview
95
+ # permissions:
96
+ # deployments: write
97
+ # runs-on: ubuntu-latest
98
+ # steps:
99
+ # - uses: chrnorm/[email protected]
100
+ # name: Create GitHub deployment for storybook
101
+ # id: storybook
102
+ # with:
103
+ # token: ${{ secrets.GITHUB_TOKEN }}
104
+ # environment: storybook-preview-${{ github.event.workflow_run.event.number }}
105
+ # environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}storybook'
106
+ # - name: Update storybook deployment status (success)
107
+ # if: success()
108
+
109
+ # with:
110
+ # token: ${{ secrets.GITHUB_TOKEN }}
111
+ # environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}storybook'
112
+ # state: 'success'
113
+ # deployment-id: ${{ steps.storybook.outputs.deployment_id }}
114
+ # - name: Update storybook deployment status (failure)
115
+ # if: failure()
116
+
117
+ # with:
118
+ # token: ${{ secrets.GITHUB_TOKEN }}
119
+ # state: 'failure'
120
+ # deployment-id: ${{ steps.storybook.outputs.deployment_id }}
115
121
116
- deploy-vrt-no-flag :
117
- name : VRT (No flags enabled)
118
- if : ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
119
- needs : [deploy-preview]
120
- permissions :
121
- deployments : write
122
- runs-on : ubuntu-latest
123
- steps :
124
-
125
- name : Create GitHub deployment for vrt-no-flag
126
- id : vrt-no-flag
127
- with :
128
- token : ${{ secrets.GITHUB_TOKEN }}
129
- environment : vrt-no-flag-${{ github.event.workflow_run.head_branch }}
130
- environment-url : ' ${{ needs.deploy-preview.outputs.deployment_url }}vrt-no-flag'
131
- - name : Update vrt-no-flag deployment status (success)
132
- if : success()
133
-
134
- with :
135
- token : ${{ secrets.GITHUB_TOKEN }}
136
- environment-url : ' ${{ needs.deploy-preview.outputs.deployment_url }}vrt-no-flag'
137
- state : ' success'
138
- deployment-id : ${{ steps.vrt-no-flag.outputs.deployment_id }}
139
- - name : Update vrt-no-flag deployment status (failure)
140
- if : failure()
141
-
142
- with :
143
- token : ${{ secrets.GITHUB_TOKEN }}
144
- state : ' failure'
145
- deployment-id : ${{ steps.vrt-no-flag.outputs.deployment_id }}
122
+ # deploy-vrt-no-flag:
123
+ # name: VRT (No flags enabled)
124
+ # if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
125
+ # needs: [deploy-preview]
126
+ # permissions:
127
+ # deployments: write
128
+ # runs-on: ubuntu-latest
129
+ # steps:
130
+ # - uses: chrnorm/[email protected]
131
+ # name: Create GitHub deployment for vrt-no-flag
132
+ # id: vrt-no-flag
133
+ # with:
134
+ # token: ${{ secrets.GITHUB_TOKEN }}
135
+ # environment: vrt-no-flag-${{ github.event.workflow_run.head_branch }}
136
+ # environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}vrt-no-flag'
137
+ # - name: Update vrt-no-flag deployment status (success)
138
+ # if: success()
139
+
140
+ # with:
141
+ # token: ${{ secrets.GITHUB_TOKEN }}
142
+ # environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}vrt-no-flag'
143
+ # state: 'success'
144
+ # deployment-id: ${{ steps.vrt-no-flag.outputs.deployment_id }}
145
+ # - name: Update vrt-no-flag deployment status (failure)
146
+ # if: failure()
147
+
148
+ # with:
149
+ # token: ${{ secrets.GITHUB_TOKEN }}
150
+ # state: 'failure'
151
+ # deployment-id: ${{ steps.vrt-no-flag.outputs.deployment_id }}
146
152
147
- deploy-vrt-all-flags :
148
- name : VRT (All flags enabled)
149
- if : ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
150
- needs : deploy-preview
151
- permissions :
152
- deployments : write
153
- runs-on : ubuntu-latest
154
- steps :
155
-
156
- name : Create GitHub deployment for vrt-all-flags
157
- id : vrt-all-flags
158
- with :
159
- token : ${{ secrets.GITHUB_TOKEN }}
160
- environment : vrt-all-flags-${{ github.event.workflow_run.event.number }}
161
- environment-url : ' ${{ needs.deploy-preview.outputs.deployment_url }}vrt-all-flags'
162
- - name : Update vrt-all-flags deployment status (success)
163
- if : success()
164
-
165
- with :
166
- token : ${{ secrets.GITHUB_TOKEN }}
167
- environment-url : ' ${{ needs.deploy-preview.outputs.deployment_url }}vrt-all-flags'
168
- state : ' success'
169
- deployment-id : ${{ steps.vrt-all-flags.outputs.deployment_id }}
170
- - name : Update vrt-all-flags deployment status (failure)
171
- if : failure()
172
-
173
- with :
174
- token : ${{ secrets.GITHUB_TOKEN }}
175
- state : ' failure'
176
- deployment-id : ${{ steps.vrt-all-flags.outputs.deployment_id }}
153
+ # deploy-vrt-all-flags:
154
+ # name: VRT (All flags enabled)
155
+ # if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
156
+ # needs: deploy-preview
157
+ # permissions:
158
+ # deployments: write
159
+ # runs-on: ubuntu-latest
160
+ # steps:
161
+ # - uses: chrnorm/[email protected]
162
+ # name: Create GitHub deployment for vrt-all-flags
163
+ # id: vrt-all-flags
164
+ # with:
165
+ # token: ${{ secrets.GITHUB_TOKEN }}
166
+ # environment: vrt-all-flags-${{ github.event.workflow_run.event.number }}
167
+ # environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}vrt-all-flags'
168
+ # - name: Update vrt-all-flags deployment status (success)
169
+ # if: success()
170
+
171
+ # with:
172
+ # token: ${{ secrets.GITHUB_TOKEN }}
173
+ # environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}vrt-all-flags'
174
+ # state: 'success'
175
+ # deployment-id: ${{ steps.vrt-all-flags.outputs.deployment_id }}
176
+ # - name: Update vrt-all-flags deployment status (failure)
177
+ # if: failure()
178
+
179
+ # with:
180
+ # token: ${{ secrets.GITHUB_TOKEN }}
181
+ # state: 'failure'
182
+ # deployment-id: ${{ steps.vrt-all-flags.outputs.deployment_id }}
177
183
178
- deploy-aat-no-flag :
179
- name : AAT (No flags enabled)
180
- if : ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
181
- needs : deploy-preview
182
- permissions :
183
- deployments : write
184
- runs-on : ubuntu-latest
185
- steps :
186
-
187
- name : Create GitHub deployment for aat-no-flag
188
- id : aat-no-flag
189
- with :
190
- token : ${{ secrets.GITHUB_TOKEN }}
191
- environment : aat-no-flag-${{ github.event.workflow_run.event.number }}
192
- environment-url : ' ${{ needs.deploy-preview.outputs.deployment_url }}aat-no-flag'
193
- - name : Update aat-no-flag deployment status (success)
194
- if : success()
195
-
196
- with :
197
- token : ${{ secrets.GITHUB_TOKEN }}
198
- environment-url : ' ${{ needs.deploy-preview.outputs.deployment_url }}aat-no-flag'
199
- state : ' success'
200
- deployment-id : ${{ steps.aat-no-flag.outputs.deployment_id }}
201
- - name : Update aat-no-flag deployment status (failure)
202
- if : failure()
203
-
204
- with :
205
- token : ${{ secrets.GITHUB_TOKEN }}
206
- state : ' failure'
207
- deployment-id : ${{ steps.aat-no-flag.outputs.deployment_id }}
184
+ # deploy-aat-no-flag:
185
+ # name: AAT (No flags enabled)
186
+ # if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
187
+ # needs: deploy-preview
188
+ # permissions:
189
+ # deployments: write
190
+ # runs-on: ubuntu-latest
191
+ # steps:
192
+ # - uses: chrnorm/[email protected]
193
+ # name: Create GitHub deployment for aat-no-flag
194
+ # id: aat-no-flag
195
+ # with:
196
+ # token: ${{ secrets.GITHUB_TOKEN }}
197
+ # environment: aat-no-flag-${{ github.event.workflow_run.event.number }}
198
+ # environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}aat-no-flag'
199
+ # - name: Update aat-no-flag deployment status (success)
200
+ # if: success()
201
+
202
+ # with:
203
+ # token: ${{ secrets.GITHUB_TOKEN }}
204
+ # environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}aat-no-flag'
205
+ # state: 'success'
206
+ # deployment-id: ${{ steps.aat-no-flag.outputs.deployment_id }}
207
+ # - name: Update aat-no-flag deployment status (failure)
208
+ # if: failure()
209
+
210
+ # with:
211
+ # token: ${{ secrets.GITHUB_TOKEN }}
212
+ # state: 'failure'
213
+ # deployment-id: ${{ steps.aat-no-flag.outputs.deployment_id }}
208
214
209
- deploy-aat-all-flags :
210
- name : AAT (All flags enabled)
211
- if : ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
212
- needs : deploy-preview
213
- permissions :
214
- deployments : write
215
- runs-on : ubuntu-latest
216
- steps :
217
-
218
- name : Create GitHub deployment for aat-all-flags
219
- id : aat-all-flags
220
- with :
221
- token : ${{ secrets.GITHUB_TOKEN }}
222
- environment : aat-all-flags-${{ github.event.workflow_run.event.number }}
223
- environment-url : ' ${{ needs.deploy-preview.outputs.deployment_url }}aat-all-flags'
224
- - name : Update aat-all-flags deployment status (success)
225
- if : success()
226
-
227
- with :
228
- token : ${{ secrets.GITHUB_TOKEN }}
229
- environment-url : ' ${{ needs.deploy-preview.outputs.deployment_url }}aat-all-flags'
230
- state : ' success'
231
- deployment-id : ${{ steps.aat-all-flags.outputs.deployment_id }}
232
- - name : Update aat-all-flags deployment status (failure)
233
- if : failure()
234
-
235
- with :
236
- token : ${{ secrets.GITHUB_TOKEN }}
237
- state : ' failure'
238
- deployment-id : ${{ steps.aat-all-flags.outputs.deployment_id }}
215
+ # deploy-aat-all-flags:
216
+ # name: AAT (All flags enabled)
217
+ # if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == 'primer/react' }}
218
+ # needs: deploy-preview
219
+ # permissions:
220
+ # deployments: write
221
+ # runs-on: ubuntu-latest
222
+ # steps:
223
+ # - uses: chrnorm/[email protected]
224
+ # name: Create GitHub deployment for aat-all-flags
225
+ # id: aat-all-flags
226
+ # with:
227
+ # token: ${{ secrets.GITHUB_TOKEN }}
228
+ # environment: aat-all-flags-${{ github.event.workflow_run.event.number }}
229
+ # environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}aat-all-flags'
230
+ # - name: Update aat-all-flags deployment status (success)
231
+ # if: success()
232
+
233
+ # with:
234
+ # token: ${{ secrets.GITHUB_TOKEN }}
235
+ # environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}aat-all-flags'
236
+ # state: 'success'
237
+ # deployment-id: ${{ steps.aat-all-flags.outputs.deployment_id }}
238
+ # - name: Update aat-all-flags deployment status (failure)
239
+ # if: failure()
240
+
241
+ # with:
242
+ # token: ${{ secrets.GITHUB_TOKEN }}
243
+ # state: 'failure'
244
+ # deployment-id: ${{ steps.aat-all-flags.outputs.deployment_id }}
0 commit comments