Skip to content

Commit c1129ce

Browse files
authored
Set tag properly
1 parent 28bb5f5 commit c1129ce

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/pre-release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,20 @@ jobs:
5757
sudo mv tools/www-tpl/* ./Havana/tools/www-tpl/
5858
sudo cp tools/scripts/README.txt ./Havana/
5959
60-
- id: sha-short
61-
name: Get short SHA
62-
run: echo "::set-output name=sha-short::$(git rev-parse --short HEAD)"
63-
60+
- id: get-tag
61+
name: Get tag version
62+
run: echo "tag=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
63+
6464
- name: Compress release files
6565
uses: montudor/action-zip@v1
6666
with:
67-
args: zip -qq -r ./Havana-${{ steps.sha-short.outputs.sha-short }}.zip ./Havana
67+
args: zip -qq -r ./Havana-${{ steps.get-tag.outputs.tag }}.zip ./Havana
6868

6969
- uses: "marvinpinto/action-automatic-releases@latest"
7070
with:
7171
repo_token: "${{ secrets.GITHUB_TOKEN }}"
72-
automatic_release_tag: "latest"
72+
automatic_release_tag: "${{ steps.get-tag.outputs.tag }}"
7373
prerelease: true
74-
title: "Development Build ${{ steps.sha-short.outputs.sha-short }}"
74+
title: "Pre-release ${{ steps.get-tag.outputs.tag }}"
7575
files: |
76-
Havana-${{ steps.sha-short.outputs.sha-short }}.zip
76+
Havana-${{ steps.get-tag.outputs.tag }}.zip

0 commit comments

Comments
 (0)