Updated github workflows to use GITHUB_OUTPUT
[skip ci]
This commit is contained in:
parent
027daed7b9
commit
2c30c96719
1 changed files with 3 additions and 3 deletions
6
.github/workflows/ci-cd.yml
vendored
6
.github/workflows/ci-cd.yml
vendored
|
|
@ -24,10 +24,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.event_name }}" == "push" && "${{ github.event.head_commit.message }}" == "Merge pull request"* ]]; then
|
if [[ "${{ github.event_name }}" == "push" && "${{ github.event.head_commit.message }}" == "Merge pull request"* ]]; then
|
||||||
echo "This is a PR merge commit."
|
echo "This is a PR merge commit."
|
||||||
echo "::set-output name=pr_merge::true"
|
echo "pr_merge=true" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "This is a direct push to main."
|
echo "This is a direct push to main."
|
||||||
echo "::set-output name=pr_merge::false"
|
echo "pr_merge=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
- name: Determine version bump type
|
- name: Determine version bump type
|
||||||
id: version-bump
|
id: version-bump
|
||||||
|
|
@ -51,7 +51,7 @@ jobs:
|
||||||
echo "Direct push to main detected. Bumping version as patch."
|
echo "Direct push to main detected. Bumping version as patch."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "::set-output name=bump_type::$bump_type"
|
echo "bump_type=$bump_type" >> $GITHUB_OUTPUT
|
||||||
- name: npm version bump
|
- name: npm version bump
|
||||||
run: |
|
run: |
|
||||||
npm version ${{ steps.version-bump.outputs.bump_type }} ---no-commit-hooks --no-git-tag-version
|
npm version ${{ steps.version-bump.outputs.bump_type }} ---no-commit-hooks --no-git-tag-version
|
||||||
|
|
|
||||||
Reference in a new issue