From 5e9930bdccb07b172b05dcda9eb742d01e52ac5c Mon Sep 17 00:00:00 2001 From: dullbananas <dull.bananas0@gmail.com> Date: Mon, 7 Aug 2023 03:40:50 -0700 Subject: [PATCH] Attempt to fix CI building wrong commits (#3830) * Attempt to fix CI building wrong commits * Update .woodpecker.yml * Update .woodpecker.yml --- .woodpecker.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index a3c1f119..f4cee4f6 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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 -- 2.44.1