Skip to content

Commit ff61cee

Browse files
committed
patch: use github context to get the tag
1 parent e2dd2fc commit ff61cee

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,22 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: '0'
18-
- run: git fetch --force --tags
18+
19+
- run: echo "version='${{ github.ref_name }}'" >> gradle.properties
1920

2021
- name: Set up JDK
2122
uses: actions/setup-java@v3
2223
with:
2324
distribution: 'oracle'
2425
java-version: '21'
2526

26-
- run: echo "version='${{ env.GITHUB_REF_NAME }}'" >> gradle.properties
27-
2827
- name: Build Jar
2928
run: ./gradlew shadowJar --no-daemon
3029

3130
- uses: marvinpinto/action-automatic-releases@latest
3231
with:
3332
repo_token: "${{ secrets.RELEASE_TOKEN }}"
34-
automatic_release_tag: ${{ env.GITHUB_REF_NAME }}
33+
automatic_release_tag: ${{ github.ref_name }}
3534
prerelease: false
3635
files: |
37-
build/libs/uk-invitation-letter-${{ env.GITHUB_REF_NAME }}.jar
36+
build/libs/uk-invitation-letter-${{ github.ref_name }}.jar

0 commit comments

Comments
 (0)