Attempt to fix CI building wrong commits (#3830)
authordullbananas <dull.bananas0@gmail.com>
Mon, 7 Aug 2023 10:40:50 +0000 (03:40 -0700)
committerGitHub <noreply@github.com>
Mon, 7 Aug 2023 10:40:50 +0000 (06:40 -0400)
* Attempt to fix CI building wrong commits

* Update .woodpecker.yml

* Update .woodpecker.yml

.woodpecker.yml

index a3c1f1194ab1b506de8acb9d022b420070a3c5b0..f4cee4f624c6104d9cc66441e1c5c30f826579f6 100644 (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