Skip to content

Commit d687580

Browse files
committed
Correct custom board build branch logic
1 parent dc3edf4 commit d687580

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-board-custom.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ jobs:
5050
git remote add fork https://github.com/${{github.repository}}.git
5151
git fetch fork --filter=tree:0
5252
- name: branch compatibility
53-
if: inputs.branch != '' && inputs.version == 'latest'
53+
if: inputs.branch != 'main' && inputs.version == 'latest' && github.repository_owner == 'adafruit'
54+
run: |
55+
git checkout ${{inputs.branch}}
56+
- name: branch compatibility (fork)
57+
if: inputs.branch != '' && inputs.version == 'latest' && github.repository_owner != 'adafruit'
5458
run: |
5559
git checkout -b fork-branch fork/${{inputs.branch}}
5660
- name: Set up identifier

0 commit comments

Comments
 (0)