Skip to content

Commit 1517726

Browse files
authored
PLGMAG2V2-641: Change in the release action, getting the version value from composer.json (#34)
1 parent f5566d2 commit 1517726

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release-actions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Release Actions
2-
on:
2+
on:
33
pull_request:
44
branches:
55
- master
@@ -77,7 +77,7 @@ jobs:
7777
magento_post_install_script: .github/workflows/magento-integration-tests-post-install.sh
7878

7979
- name: Get Release Version
80-
run: echo "::set-output name=version::$(echo ${{github.head_ref}} | cut -c 9-)"
80+
run: echo "::set-output name=version::$(cat composer.json | grep version | awk -F'\"' '{print $4}')"
8181
id: version
8282
- name: Get Changelog Entry
8383
id: changelog_reader
@@ -96,4 +96,4 @@ jobs:
9696
release_name: ${{steps.version.outputs.version}}
9797
body: ${{steps.changelog_reader.outputs.changes}}
9898
draft: false
99-
prerelease: false
99+
prerelease: false

0 commit comments

Comments
 (0)