mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 00:35:18 +00:00
handle circleci tags
This commit is contained in:
parent
9c85201ccc
commit
0ccc1a6ee2
@ -18,17 +18,14 @@ commands:
|
|||||||
name: "Restore source code cache"
|
name: "Restore source code cache"
|
||||||
keys:
|
keys:
|
||||||
- go-src-v1-{{ .Revision }}
|
- go-src-v1-{{ .Revision }}
|
||||||
- checkout
|
|
||||||
- run:
|
- run:
|
||||||
name: Checkout with tags
|
name: Checkout with tags
|
||||||
command: |
|
command: |
|
||||||
git fetch --force origin "refs/tags/${CIRCLE_TAG}:refs/tags/${CIRCLE_TAG}"
|
if [ -n "$CIRCLE_TAG" ]
|
||||||
if [ -n "$CIRCLE_BRANCH" ]
|
|
||||||
then
|
then
|
||||||
git reset --hard $CIRCLE_SHA1
|
git fetch --force origin "refs/tags/${CIRCLE_TAG}:refs/tags/${CIRCLE_TAG}"
|
||||||
git checkout -q -B $CIRCLE_BRANCH
|
|
||||||
fi
|
fi
|
||||||
git reset --hard $CIRCLE_SHA1
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
name: "Restore go modules cache"
|
name: "Restore go modules cache"
|
||||||
keys:
|
keys:
|
||||||
|
Loading…
Reference in New Issue
Block a user