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