File tree Expand file tree Collapse file tree 1 file changed +5
-24
lines changed
Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -51,39 +51,20 @@ jobs:
5151 build :
5252 runs-on : self-hosted
5353 steps :
54- - name : Set up repository
55- run : |
56- if [ -d "$GITHUB_WORKSPACE/.git" ]; then
57- cd "$GITHUB_WORKSPACE"
58- git fetch --all
59- git reset --hard origin/main
60- else
61- git clone --filter=tree:0 https://github.com/adafruit/circuitpython.git "$GITHUB_WORKSPACE"
62- fi
54+ - uses : actions/checkout@v5
55+ with :
56+ fetch-depth : 0
6357 - name : Checkout head / tag
6458 env :
6559 TAG : ${{ inputs.version == 'latest' && 'HEAD' || inputs.version }}
6660 run : |
6761 git checkout "$TAG"
68- - name : fork compatibility
69- if : github.repository_owner != 'adafruit'
70- env :
71- REPO : ${{ github.repository }}
72- run : |
73- git remote add fork "https://github.com/$REPO.git"
74- git fetch fork --filter=tree:0
7562 - name : branch compatibility
76- if : inputs.branch != 'main' && inputs.version == 'latest' && github.repository_owner == 'adafruit'
77- env :
78- BRANCH : ${{ inputs.branch }}
79- run : |
80- git checkout "$BRANCH"
81- - name : branch compatibility (fork)
82- if : inputs.branch != '' && inputs.version == 'latest' && github.repository_owner != 'adafruit'
63+ if : inputs.branch != '' && inputs.version == 'latest'
8364 env :
8465 BRANCH : ${{ inputs.branch }}
8566 run : |
86- git checkout -b fork-branch "fork /$BRANCH"
67+ git checkout -b fork-branch "origin /$BRANCH"
8768 - name : Set up identifier
8869 if : inputs.debug || inputs.flags != ''
8970 run : |
You can’t perform that action at this time.
0 commit comments