From 9d11c36c006d8ce38324d6c80a983cd12ebd5782 Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Wed, 10 Jul 2024 17:20:33 +0200 Subject: [PATCH] `git fetch` before rev-parse --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 56963f3b861..d2bf4e52aad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -242,6 +242,10 @@ save_versions: - when: manual allow_failure: true script: + - ls -la + - git clone https://github.com/DataDog/dd-trace-rb.git + - cd dd-trace-rb + - git fetch - echo 1_X_COMMIT_SHA=$(git rev-parse 1.x-stable) >> upstream.env - echo 2_X_COMMIT_SHA=$(git rev-parse master) >> upstream.env artifacts: