Skip to content

Commit 09ba953

Browse files
committed
fix env variable usage in release job step
1 parent 362de5b commit 09ba953

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build-plugin.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
- name: Check if plugin version matches tag
5555
run: |
5656
pluginversion=`jq -r '.version' plugin.json`
57-
if [ "v$pluginversion" != "$GITHUB_REF_NAME" ]; then
58-
echo "Plugin version from plugin.json 'v$pluginversion' doesn't match with tag version '$GITHUB_REF_NAME'"
57+
if [ "v$pluginversion" != "${{ env.GITHUB_REF_NAME }}" ]; then
58+
echo "Plugin version from plugin.json 'v$pluginversion' doesn't match with tag version '${{ env.GITHUB_REF_NAME }}'"
5959
exit 1
6060
fi
6161
- name: Create Release
@@ -66,7 +66,7 @@ jobs:
6666
tag_name: ${{ github.ref }}
6767
release_name: Release ${{ github.ref }}
6868
body: |
69-
$GITHUB_REPOSITORY_NAME VCV Rack Plugin $GITHUB_REF_NAME
69+
${{ env.GITHUB_REPOSITORY_NAME }} VCV Rack Plugin ${{ env.GITHUB_REF_NAME }}
7070
draft: false
7171
prerelease: false
7272
- uses: actions/download-artifact@v2

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"slug": "MyPlugin",
33
"name": "MyPlugin",
4-
"version": "2.0.6",
4+
"version": "2.0.7",
55
"license": "GPL-3.0-or-later",
66
"brand": "MyBrand",
77
"author": "Me",

0 commit comments

Comments
 (0)