Update build.yml
This commit is contained in:
parent
3cc7a064a1
commit
4a05ffba95
@ -12,19 +12,6 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Extract tag name
|
||||
run: |
|
||||
git fetch --tags
|
||||
GIT_TAG=$(git tag --points-at HEAD)
|
||||
echo "GIT_TAG: $GIT_TAG"
|
||||
if [[ "$GIT_TAG" == v* ]]; then
|
||||
TAG_NAME=${GIT_TAG#v}
|
||||
echo "Extracted tag name: $TAG_NAME"
|
||||
else
|
||||
echo "This is not a tag push with 'v' prefix, skipping..."
|
||||
exit 78
|
||||
fi
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
@ -62,11 +49,14 @@ jobs:
|
||||
steps:
|
||||
- name: Extract tag name
|
||||
run: |
|
||||
if [[ "$GITEA_REF" =~ ^refs/tags/v ]]; then
|
||||
TAG_NAME=${GITEA_REF#refs/tags/v}
|
||||
GIT_TAG=$(git tag --points-at HEAD)
|
||||
if [[ "$GIT_TAG" == v* ]]; then
|
||||
TAG_NAME=${GIT_TAG#v}
|
||||
echo "Extracted tag name: $TAG_NAME"
|
||||
else
|
||||
echo "This is not a tag push with 'v' prefix, skipping..."
|
||||
exit 78
|
||||
fi
|
||||
|
||||
- name: Initialize Docker runtime
|
||||
run: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user