Skip to content

Commit

Permalink
git fetch before rev-parse
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Jul 12, 2024
1 parent c75efb4 commit 530cb25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ save_versions:
- when: manual
allow_failure: true
script:
- echo 1_X_COMMIT_SHA=$(git rev-parse 1.x-stable) >> upstream.env
- echo 2_X_COMMIT_SHA=$(git rev-parse master) >> upstream.env
- git fetch --all
- echo 1_X_COMMIT_SHA=$(git rev-parse origin/1.x-stable) >> upstream.env
- echo 2_X_COMMIT_SHA=$(git rev-parse origin/master) >> upstream.env
artifacts:
paths:
- upstream.env
Expand Down

0 comments on commit 530cb25

Please sign in to comment.