diff --git a/.woodpecker.yml b/.woodpecker.yml index a3c1f1194..f4cee4f62 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