Skip to content

Commit

Permalink
Rename remote from fork to avoid conflict / debug idf issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Jun 3, 2024
1 parent 0c0b54d commit e76accd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-board-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ jobs:
- name: Checkout head / tag
run: |
git checkout ${{ inputs.version == 'latest' && 'HEAD' || inputs.version }}
- name: fork compatibility
- name: user-fork compatibility
if: github.repository_owner != 'adafruit'
run: |
git remote add fork https://github.com/${{github.repository}}.git
git fetch fork --filter=tree:0
git remote add user-fork https://github.com/${{github.repository}}.git
git fetch user-fork --filter=tree:0
- name: branch compatibility
if: inputs.branch != 'main' && inputs.version == 'latest' && github.repository_owner == 'adafruit'
run: |
git checkout ${{inputs.branch}}
- name: branch compatibility (fork)
- name: branch compatibility (user-fork)
if: inputs.branch != '' && inputs.version == 'latest' && github.repository_owner != 'adafruit'
run: |
git checkout -b fork-branch fork/${{inputs.branch}}
git checkout -b user-fork-branch user-fork/${{inputs.branch}}
- name: Set up identifier
if: inputs.debug || inputs.flags != ''
run: |
Expand Down

0 comments on commit e76accd

Please sign in to comment.