Skip to content

Commit

Permalink
Correct custom board build branch logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Jun 3, 2024
1 parent dc3edf4 commit d687580
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-board-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ jobs:
git remote add fork https://github.com/${{github.repository}}.git
git fetch fork --filter=tree:0
- name: branch compatibility
if: inputs.branch != '' && inputs.version == 'latest'
if: inputs.branch != 'main' && inputs.version == 'latest' && github.repository_owner == 'adafruit'
run: |
git checkout ${{inputs.branch}}
- name: branch compatibility (fork)
if: inputs.branch != '' && inputs.version == 'latest' && github.repository_owner != 'adafruit'
run: |
git checkout -b fork-branch fork/${{inputs.branch}}
- name: Set up identifier
Expand Down

0 comments on commit d687580

Please sign in to comment.