Skip to content

Commit ee50daf

Browse files
authored
fix: Fix missing outputs for actions/increment-version (#220)
Fixes a bug introduced in #212 where the `actions/increment-version` action no longer produces outputs. This was caused by a missing step ID reference. To fix the issue, I've re-added the step ID to the step that produces the action's outputs. DCMAW-16073
1 parent 727e9cc commit ee50daf

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/check-deploy-test-project.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ jobs:
4040
id: versioning
4141
uses: ./actions/increment-version
4242

43+
- name: Show increment-version outputs
44+
run: |
45+
echo "Current version is $CURRENT_VERSION"
46+
echo "New version is $NEW_VERSION"
47+
shell: bash
48+
env:
49+
CURRENT_VERSION: ${{ steps.versioning.outputs.current_version }}
50+
NEW_VERSION: ${{ steps.versioning.outputs.new_version }}
51+
4352
- name: Generate Changelog
4453
uses: ./actions/generate-and-upload-changelog
4554
with:

actions/increment-version/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ runs:
5959
PRE_RELEASE_TYPE: ${{ inputs.pre-release-type }}
6060

6161
- name: Increment the release version using Conventional Commits
62+
id: versioning
6263
run: increment_version.bash "$PRE_RELEASE" >> $GITHUB_OUTPUT
6364
shell: bash
6465
env:

0 commit comments

Comments
 (0)