Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
be667bad1d | |||
01614570f7 | |||
6de5e9aa48 |
@ -33,7 +33,7 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${1}" ]; then
|
if [ -z "${2}" ]; then
|
||||||
read -p "Enter end tag [${DEFAULT_NEW_TAG}]: " NEW_TAG
|
read -p "Enter end tag [${DEFAULT_NEW_TAG}]: " NEW_TAG
|
||||||
if [ -z "${NEW_TAG}" ]; then
|
if [ -z "${NEW_TAG}" ]; then
|
||||||
NEW_TAG="${DEFAULT_NEW_TAG}"
|
NEW_TAG="${DEFAULT_NEW_TAG}"
|
||||||
@ -47,7 +47,7 @@ if [ -z "${1}" ]; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
NEW_TAG=${1}
|
NEW_TAG=${2}
|
||||||
|
|
||||||
if [ -z "$(git tag --list "${NEW_TAG}")" ]; then
|
if [ -z "$(git tag --list "${NEW_TAG}")" ]; then
|
||||||
echo "ERROR: Tag '${NEW_TAG}' not found!"
|
echo "ERROR: Tag '${NEW_TAG}' not found!"
|
||||||
|
@ -17,11 +17,11 @@ jobs:
|
|||||||
apk add git npm yq
|
apk add git npm yq
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Add Artifacthub.io annotations
|
- name: Add Artifacthub.io annotations
|
||||||
run: |
|
run: |
|
||||||
git fetch --unshallow --tags --force
|
|
||||||
|
|
||||||
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