chore(ci): checkout tags via git
This commit is contained in:
parent
d56f5e65c7
commit
69c4b3dd4d
@ -15,13 +15,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
apk update
|
apk update
|
||||||
apk add git npm yq
|
apk add git npm yq
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
fetch-tags: true
|
|
||||||
|
|
||||||
- name: Add Artifacthub.io annotations
|
- name: Add Artifacthub.io annotations
|
||||||
run: |
|
run: |
|
||||||
|
git fetch --prune --unshallow --tags
|
||||||
|
|
||||||
NEW_TAG="$(git describe --abbrev=0)"
|
NEW_TAG="$(git describe --abbrev=0)"
|
||||||
OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")"
|
OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user