Skip to content

Commit 6cd5070

Browse files
authored
Update test_ws_codecov.yml
1 parent 46a5e4f commit 6cd5070

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/test_ws_codecov.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,21 @@ jobs:
1313
id: branch-name
1414
uses: tj-actions/branch-names@v6
1515

16-
- uses: actions/checkout@v3
16+
- name: Checkout to specific branch
17+
uses: actions/checkout@v3
18+
id: specific-checkout
19+
continue-on-error: true
1720
with:
1821
repository: biothings/biothings_explorer
1922
ref: ${{ steps.branch-name.outputs.current_branch }}
2023

24+
- name: Checkout to main if above failed
25+
if: steps.specific-checkout.outcome = 'failure'
26+
uses: actions/checkout@v3
27+
with:
28+
repository: biothings/biothings_explorer
29+
ref: main
30+
2131
- name: Use Node.js 18.x
2232
uses: actions/setup-node@v3
2333
with:

0 commit comments

Comments
 (0)