Skip to content

Commit 112178f

Browse files
authored
Update release.yml
1 parent 5f9ae83 commit 112178f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ jobs:
4949
run: |
5050
export DISTRIBUTION=$(grep -i ^Distribution *.changes | awk -F\: '{ print $2 }' | awk '{ print $1 }')
5151
echo "DISTRIBUTION=$DISTRIBUTION" >> $GITHUB_ENV
52+
53+
export VERSION=$(grep -i ^Version *.changes | awk -F\: '{ print $2 }' | awk '{ print $1 }')
54+
echo "VERSION=$VERSION" >> $GITHUB_ENV
55+
56+
- name: Test if it's a testing prerelease
57+
id: check_prerelease
58+
uses: haya14busa/action-cond@v1
59+
with:
60+
cond: ${{ env.DISTRIBUTION == 'lmn71' }}
61+
if_true: "false"
62+
if_false: "true"
5263

5364
- name: Create Release
5465
id: create_release
@@ -57,9 +68,9 @@ jobs:
5768
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5869
with:
5970
tag_name: ${{ github.ref }}
60-
release_name: Release ${{ github.ref }} (${{ DISTRIBUTION }})
71+
release_name: Release ${{ env.VERSION }} (${{ env.DISTRIBUTION }})
6172
draft: false
62-
prerelease: false
73+
prerelease: ${{ steps.check_prerelease.outputs.value }}
6374
body_path: ./current-changes
6475

6576
- name: Delete current changes file

0 commit comments

Comments
 (0)