Skip to content

Commit 5fe6ab6

Browse files
committed
workflows: fix version propagation through workflow
1 parent c3e9ee5 commit 5fe6ab6

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/actions/version/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ inputs:
88
description: "The Git reference (branch/tag) to check"
99
required: true
1010

11+
outputs:
12+
version:
13+
description: "The determined version"
14+
value: ${{ steps.version_handler.outputs.version }}
15+
1116
runs:
1217
using: "composite"
1318
steps:
@@ -34,11 +39,6 @@ runs:
3439
run: |
3540
python .github/workflows/version_handler.py
3641
37-
# Set the output VERSION from the result of the script
38-
- name: Set version output
39-
shell: bash
40-
run: echo "VERSION=${{ steps.version_handler.outputs.version }}" >> $GITHUB_ENV
41-
4242
- name: Fail if version is 0
4343
shell: bash
4444
run: |

.github/workflows/build-develop2.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
uses: actions/checkout@v3
1616

1717
- name: Get latest release version
18+
id: version_check
1819
uses: ./.github/actions/version
1920
with:
2021
repository: ${{ github.repository }}
@@ -37,6 +38,6 @@ jobs:
3738
uses: ./.github/actions/release
3839
with:
3940
build-config: ${{env.BUILD_CONFIGURATION}}
40-
version-name: ${{env.VERSION}}
41+
version-name: ${{steps.version_check.outputs.version}}
4142
prelease: true
4243
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)