Skip to content

Commit 0fa40af

Browse files
authored
ci: update workflows for nodejs projects (#141)
1 parent 32430ea commit 0fa40af

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

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

+18-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,24 @@ jobs:
1616
matrix:
1717
os: [ubuntu-latest, macos-latest, windows-latest]
1818
steps:
19-
- if: "github.event.pull_request.draft == false &&!((github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'ci: update global workflows')) || (github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'chore(release):')) || (github.actor == 'allcontributors' && startsWith(github.event.pull_request.title, 'docs: add')))"
19+
- if: >
20+
!github.event.pull_request.draft && !(
21+
(github.actor == 'asyncapi-bot' && (
22+
startsWith(github.event.pull_request.title, 'ci: update global workflows') ||
23+
startsWith(github.event.pull_request.title, 'chore: update code of conduct') ||
24+
startsWith(github.event.pull_request.title, 'ci: update global contribution guide') ||
25+
startsWith(github.event.pull_request.title, 'ci: update workflows for go projects') ||
26+
startsWith(github.event.pull_request.title, 'ci: update workflows for nodejs projects') ||
27+
startsWith(github.event.pull_request.title, 'ci: update release-related workflows for nodejs projects') ||
28+
startsWith(github.event.pull_request.title, 'ci: update semantic release config file') ||
29+
startsWith(github.event.pull_request.title, 'ci: update generic workflows') ||
30+
startsWith(github.event.pull_request.title, 'ci: update workflows for docker-based projects') ||
31+
startsWith(github.event.pull_request.title, 'chore(release):')
32+
)) ||
33+
(github.actor == 'allcontributors' &&
34+
startsWith(github.event.pull_request.title, 'docs: add')
35+
)
36+
)
2037
id: should_run
2138
name: Should Run
2239
run: echo "::set-output name=shouldrun::true"

0 commit comments

Comments
 (0)