Skip to content

Commit a4064ef

Browse files
committed
use GIHUB_OUTPUT instead of set-output
1 parent e2a6836 commit a4064ef

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/bump.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout repo
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2424
- name: Check if Node.js project and has package.json
2525
id: packagejson
26-
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
26+
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
2727
- if: steps.packagejson.outputs.exists == 'true'
2828
name: Bumping latest version of this package in other repositories
29-
uses: derberg/npm-dependency-manager-for-your-github-org@v4
29+
uses: derberg/npm-dependency-manager-for-your-github-org@26a4f13d740254719971325046822a169aaa7441 # using v5.-.- https://github.com/derberg/npm-dependency-manager-for-your-github-org/releases/tag/v5.0.0
3030
with:
3131
github_token: ${{ secrets.GH_TOKEN }}
3232
committer_username: asyncapi-bot
3333
committer_email: info@asyncapi.io
34-
repos_to_ignore: html-template # this is temporary until react component releases 1.0, then it can be removed
34+
repos_to_ignore: html-template # this is temporary until react component releases 1.0, then it can be removed

.github/workflows/if-nodejs-version-bump.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
ref: ${{ github.event.release.target_commitish }}
2424
- name: Check if Node.js project and has package.json
2525
id: packagejson
26-
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
26+
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
2727
- if: steps.packagejson.outputs.exists == 'true'
2828
name: Setup Node.js
2929
uses: actions/setup-node@v3
@@ -45,7 +45,7 @@ jobs:
4545
run: VERSION=${{github.event.release.tag_name}} npm run bump:version
4646
- if: steps.packagejson.outputs.exists == 'true'
4747
name: Create Pull Request with updated asset files including package.json
48-
uses: peter-evans/create-pull-request@v3
48+
uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # use 4.2.4 https://github.com/peter-evans/create-pull-request/releases/tag/v4.2.4
4949
with:
5050
token: ${{ secrets.GH_TOKEN }}
5151
commit-message: 'chore(release): ${{github.event.release.tag_name}}'

0 commit comments

Comments
 (0)