Update build.yml
This commit is contained in:
parent
d0d0a555b7
commit
b5d2793159
@ -12,6 +12,14 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Extract tag name
|
||||||
|
run: |
|
||||||
|
if [[ "$GITEA_REF" =~ ^refs/tags/v ]]; then
|
||||||
|
TAG_NAME=${GITEA_REF#refs/tags/v}
|
||||||
|
echo "Extracted tag name: $TAG_NAME"
|
||||||
|
else
|
||||||
|
echo "This is not a tag push with 'v' prefix, skipping..."
|
||||||
|
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 21
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
@ -48,9 +56,12 @@ jobs:
|
|||||||
needs: build-jar
|
needs: build-jar
|
||||||
steps:
|
steps:
|
||||||
- name: Extract tag name
|
- name: Extract tag name
|
||||||
id: get_tag
|
|
||||||
run: |
|
run: |
|
||||||
echo TAG_NAME=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
|
if [[ "$GITEA_REF" =~ ^refs/tags/v ]]; then
|
||||||
|
TAG_NAME=${GITEA_REF#refs/tags/v}
|
||||||
|
echo "Extracted tag name: $TAG_NAME"
|
||||||
|
else
|
||||||
|
echo "This is not a tag push with 'v' prefix, skipping..."
|
||||||
|
|
||||||
- name: Initialize Docker runtime
|
- name: Initialize Docker runtime
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user