Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathildeuh authored Jun 1, 2024
1 parent 1500039 commit 4ab2969
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
distribution: 'temurin'

# Extract version from build.gradle
- name: Get version from build.gradle
id: get_version
run: echo ::set-output name=version::$(grep -oP 'version\s*=\s*"\K[^"]+' build.gradle)
- name: Get tag name from build.gradle
id: get_tag_name
run: echo ::set-output name=tag_name::"V$(grep -oP 'version\s*=\s*"\K[^"]+' build.gradle)"

# Extract name from settings.gradle
- name: Get name from settings.gradle
Expand All @@ -48,8 +48,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.version }}
release_name: ${{ steps.get_name.outputs.name }}
tag_name: ${{ steps.get_tag_name.outputs.tag_name }}
release_name: ${{ steps.get_name.outputs.name }} - ${{ steps.get_version.outputs.version }}
draft: true
prerelease: false

Expand Down

0 comments on commit 4ab2969

Please sign in to comment.