Skip to content

Commit e20fcd2

Browse files
authored
ci: update workflows for nodejs projects (#748)
1 parent 74ccc32 commit e20fcd2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/if-nodejs-pr-testing.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,29 @@ jobs:
3030
startsWith(github.event.pull_request.title, 'ci: update workflows for docker-based projects') ||
3131
startsWith(github.event.pull_request.title, 'chore(release):')
3232
)) ||
33-
(github.actor == 'allcontributors' &&
33+
(github.actor == 'allcontributors[bot]' &&
3434
startsWith(github.event.pull_request.title, 'docs: add')
3535
)
3636
)
3737
id: should_run
3838
name: Should Run
39-
run: echo "::set-output name=shouldrun::true"
39+
run: echo "shouldrun=true" >> $GITHUB_OUTPUT
4040
- if: steps.should_run.outputs.shouldrun == 'true'
4141
name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
4242
run: |
4343
git config --global core.autocrlf false
4444
git config --global core.eol lf
4545
- if: steps.should_run.outputs.shouldrun == 'true'
4646
name: Checkout repository
47-
uses: actions/checkout@v2
47+
uses: actions/checkout@v3
4848
- if: steps.should_run.outputs.shouldrun == 'true'
4949
name: Check if Node.js project and has package.json
5050
id: packagejson
51-
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
51+
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
5252
shell: bash
5353
- if: steps.packagejson.outputs.exists == 'true'
5454
name: Setup Node.js
55-
uses: actions/setup-node@v2
55+
uses: actions/setup-node@v3
5656
with:
5757
node-version: 14
5858
cache: 'npm'

0 commit comments

Comments
 (0)