Attempt to fix CI building wrong commits (#3830)

* Attempt to fix CI building wrong commits

* Update .woodpecker.yml

* Update .woodpecker.yml
This commit is contained in:
dullbananas 2023-08-07 03:40:50 -07:00 committed by GitHub
parent 57cb5637fc
commit 5e9930bdcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,10 @@ pipeline:
image: alpine:3
commands:
- apk add git
# Try to prevent the previous commit from being used
- sleep 10
- git fetch --no-tags --depth=1 --filter=tree:0 origin "+refs/pull/$CI_COMMIT_PULL_REQUEST/merge:"
- git checkout -qf FETCH_HEAD
- git submodule init
- git submodule update