Skip to content

Commit ebd3381

Browse files
author
asyncapi-bot
committed
ci: update of files from global .github repo
1 parent 33363e8 commit ebd3381

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
pull_request:
99
types: [opened, reopened, synchronize, ready_for_review]
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
test-nodejs-pr:
1316
name: Test NodeJS PR - ${{ matrix.os }}
@@ -18,21 +21,21 @@ jobs:
1821
steps:
1922
- if: >
2023
!github.event.pull_request.draft && !(
21-
(github.actor == 'asyncapi-bot' && (
24+
(github.event.pull_request.user.login == 'asyncapi-bot' && (
2225
startsWith(github.event.pull_request.title, 'ci: update of files from global .github repo') ||
2326
startsWith(github.event.pull_request.title, 'chore(release):')
2427
)) ||
25-
(github.actor == 'asyncapi-bot-eve' && (
28+
(github.event.pull_request.user.login == 'asyncapi-bot-eve' && (
2629
startsWith(github.event.pull_request.title, 'ci: update of files from global .github repo') ||
2730
startsWith(github.event.pull_request.title, 'chore(release):')
2831
)) ||
29-
(github.actor == 'allcontributors[bot]' &&
32+
(github.event.pull_request.user.login == 'allcontributors[bot]' &&
3033
startsWith(github.event.pull_request.title, 'docs: add')
3134
)
3235
)
3336
id: should_run
3437
name: Should Run
35-
run: echo "shouldrun=true" >> $GITHUB_OUTPUT
38+
run: echo "shouldrun=true" >> "$GITHUB_OUTPUT"
3639
shell: bash
3740
- if: steps.should_run.outputs.shouldrun == 'true'
3841
name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
@@ -43,10 +46,12 @@ jobs:
4346
- if: steps.should_run.outputs.shouldrun == 'true'
4447
name: Checkout repository
4548
uses: actions/checkout@v4
49+
with:
50+
persist-credentials: false
4651
- if: steps.should_run.outputs.shouldrun == 'true'
4752
name: Check if Node.js project and has package.json
4853
id: packagejson
49-
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
54+
run: test -e ./package.json && echo "exists=true" >> "$GITHUB_OUTPUT" || echo "exists=false" >> "$GITHUB_OUTPUT"
5055
shell: bash
5156
- if: steps.packagejson.outputs.exists == 'true'
5257
name: Determine what node version to use

0 commit comments

Comments
 (0)