Skip to content

Commit

Permalink
Merge pull request #9298 from tyeth/correct-branch-logic-custom-builds
Browse files Browse the repository at this point in the history
Correct custom board build branch logic
  • Loading branch information
dhalbert authored Jun 3, 2024
2 parents dc3edf4 + d687580 commit b1e4bc3
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 b1e4bc3

Please sign in to comment.