mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
fix ci issue with tags
This commit is contained in:
parent
247ccc2886
commit
8a5a3c2496
@ -33,6 +33,16 @@ jobs:
|
||||
executor: golang
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Checkout with tags
|
||||
command: |
|
||||
git fetch --force origin "refs/tags/${CIRCLE_TAG}:refs/tags/${CIRCLE_TAG}"
|
||||
if [ -n "$CIRCLE_BRANCH" ]
|
||||
then
|
||||
git reset --hard $CIRCLE_SHA1
|
||||
git checkout -q -B $CIRCLE_BRANCH
|
||||
fi
|
||||
git reset --hard $CIRCLE_SHA1
|
||||
- restore_cache:
|
||||
name: "Restore go modules cache"
|
||||
keys:
|
||||
|
Loading…
Reference in New Issue
Block a user