Skip to content

Commit a6b9d97

Browse files
committed
[skip ci] workflow test
1 parent 36e5a89 commit a6b9d97

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ jobs:
5353
steps:
5454
- name: Set up repository
5555
run: |
56-
git clone --filter=tree:0 https://github.com/adafruit/circuitpython.git $GITHUB_WORKSPACE
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
5763
- name: Checkout head / tag
5864
env:
5965
TAG: ${{ inputs.version == 'latest' && 'HEAD' || inputs.version }}

0 commit comments

Comments
 (0)