Skip to content

Commit

Permalink
Remove deprecated use of ::set-output in GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arnested committed Apr 1, 2023
1 parent e7eb4c9 commit de09956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
git config user.name github-actions
git config user.email github-actions@github.com
git add --force dist/index.js
(git commit -m 'Publish dist' && echo '::set-output name=changed::true') || echo '::set-output name=changed::false'
(git commit -m 'Publish dist' && (echo 'changed=true' >> $GITHUB_OUTPUT)) || (echo 'changed=false' >> $GITHUB_OUTPUT)
- name: Push rebuild dist
if: ${{ steps.dist.outputs.changed == 'true' }}
run: |
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Get current date
if: ${{ (steps.dist.outputs.changed == 'true') && (steps.version.outputs.new_tag != '') }}
id: date
run: echo "::set-output name=date::$(date --iso-8601)"
run: echo "date=$(date --iso-8601)" >> $GITHUB_OUTPUT
- name: Build full ChangeLog
if: ${{ (steps.dist.outputs.changed == 'true') && (steps.version.outputs.new_tag != '') }}
run: npx conventional-changelog-cli --release-count=0 --preset=eslint --outfile="${{ runner.temp }}/FullChangeLog.md"
Expand Down

0 comments on commit de09956

Please sign in to comment.