Skip to content

Commit

Permalink
fix: update GitHub workflow to switch to main branch by default
Browse files Browse the repository at this point in the history
  • Loading branch information
NeuralFlux committed Aug 15, 2024
1 parent aaae863 commit aece981
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/test-cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,21 @@ jobs:
id: branch-name
uses: tj-actions/branch-names@v6

- uses: actions/checkout@v3
- name: Checkout to specific branch
uses: actions/checkout@v3
id: specific-checkout
continue-on-error: true
with:
repository: biothings/biothings_explorer
ref: ${{ steps.branch-name.outputs.current_branch }}

- name: Checkout to main if above failed
if: steps.specific-checkout.outcome == 'failure'
uses: actions/checkout@v3
with:
repository: biothings/biothings_explorer
ref: main

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit aece981

Please sign in to comment.