Updated github workflows to use GITHUB_OUTPUT

[skip ci]
This commit is contained in:
Ceferino Patino 2024-12-11 12:33:41 -06:00
commit 2c30c96719
Signed by: c4patino
SSH key fingerprint: SHA256:Wu+cU1t+7zVT9wzew/4meNmeulo66NzMqc22MdDBgXI

View file

@ -24,10 +24,10 @@ jobs:
run: |
if [[ "${{ github.event_name }}" == "push" && "${{ github.event.head_commit.message }}" == "Merge pull request"* ]]; then
echo "This is a PR merge commit."
echo "::set-output name=pr_merge::true"
echo "pr_merge=true" >> $GITHUB_OUTPUT
else
echo "This is a direct push to main."
echo "::set-output name=pr_merge::false"
echo "pr_merge=false" >> $GITHUB_OUTPUT
fi
- name: Determine version bump type
id: version-bump
@ -51,7 +51,7 @@ jobs:
echo "Direct push to main detected. Bumping version as patch."
fi
echo "::set-output name=bump_type::$bump_type"
echo "bump_type=$bump_type" >> $GITHUB_OUTPUT
- name: npm version bump
run: |
npm version ${{ steps.version-bump.outputs.bump_type }} ---no-commit-hooks --no-git-tag-version