Skip to content

Commit

Permalink
Try correctly extracting the tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
jbachorik committed Apr 3, 2021
1 parent 671ef34 commit 334e9f8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Branch name
id: branch_name
run: |
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- name: Set up Java 8
uses: actions/setup-java@v1
with:
Expand Down Expand Up @@ -51,6 +57,6 @@ jobs:
draft: true
prerelease: false
files: |
btrace-dist/build/distributions/btrace-${{ github.ref }}-bin.tar.gz
btrace-dist/build/distributions/btrace-${{ github.ref }}-bin.zip
btrace-dist/build/distributions/btrace-${{ github.ref }}-sdkman-bin.zip
btrace-dist/build/distributions/btrace-${{ steps.branch_name.outputs.SOURCE_TAG }}-bin.tar.gz
btrace-dist/build/distributions/btrace-${{ steps.branch_name.outputs.SOURCE_TAG }}-bin.zip
btrace-dist/build/distributions/btrace-${{ steps.branch_name.outputs.SOURCE_TAG }}-sdkman-bin.zip

0 comments on commit 334e9f8

Please sign in to comment.