This repository was archived by the owner on Nov 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +33
-7
lines changed Expand file tree Collapse file tree 3 files changed +33
-7
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -156,9 +156,25 @@ jobs:
156
156
COMMIT_INFO_MESSAGE : ${{github.event.pull_request.title}}
157
157
COMMIT_INFO_SHA : ${{github.event.pull_request.head.sha}}
158
158
159
- - name : Rollback For Failed Cypress Tests
160
- if : ${{ failure() && github.event_name != 'workflow_dispatch' }}
161
- id : rollback
162
- uses : ./.github/actions/rollback_release
163
- with :
164
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
159
+ rollback_if_failed :
160
+ needs : [cypress, publish, cypress_post_tests]
161
+ name : Rollback Release
162
+ if : ${{ failure() && github.event_name != 'workflow_dispatch' }}
163
+ runs-on : ubuntu-latest
164
+ steps :
165
+ - uses : actions/checkout@v2
166
+
167
+ - name : Setup Node
168
+ uses : actions/setup-node@v2
169
+ with :
170
+ node-version : 16
171
+
172
+ - name : Install Dependencies
173
+ run : |
174
+ cd ./.github/actions/rollback_release
175
+ npm install
176
+ - name : Rollback For Failed Cypress Tests
177
+ id : rollback
178
+ uses : ./.github/actions/rollback_release
179
+ with :
180
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 12
12
steps :
13
13
- uses : actions/checkout@v2
14
14
15
- - name : Update the bad release to a draft
15
+ - name : Setup Node
16
+ uses : actions/setup-node@v2
17
+ with :
18
+ node-version : 16
19
+
20
+ - name : Install Dependencies
21
+ run : |
22
+ cd ./.github/actions/rollback_release
23
+ npm install
24
+
25
+ - name : Update the Bad Release to a Draft
16
26
uses : ./.github/actions/rollback_release
17
27
env :
18
28
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments