Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 53e1041

Browse files
Merge pull request #756 from Bandwidth/DX-2924
DX-2924 Rollback Dependencies Fix
2 parents c903a13 + 41f7152 commit 53e1041

File tree

3 files changed

+33
-7
lines changed

3 files changed

+33
-7
lines changed
File renamed without changes.

.github/workflows/publish-docsite.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,25 @@ jobs:
156156
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
157157
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
158158

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 }}

.github/workflows/rollback-release.yaml renamed to .github/workflows/rollback-release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,17 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414

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
1626
uses: ./.github/actions/rollback_release
1727
env:
1828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)