From: dullbananas <dull.bananas0@gmail.com> Date: Mon, 7 Aug 2023 10:40:50 +0000 (-0700) Subject: Attempt to fix CI building wrong commits (#3830) X-Git-Url: http://these/git/%22%7Burl%7D/%7B%60https:/%24%7Bargs.thread.url%7D?a=commitdiff_plain;h=5e9930bdccb07b172b05dcda9eb742d01e52ac5c;p=lemmy.git Attempt to fix CI building wrong commits (#3830) * Attempt to fix CI building wrong commits * Update .woodpecker.yml * Update .woodpecker.yml --- 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