Skip to content

Commit c48bc1b

Browse files
authored
ci: update global workflows (#248)
1 parent a8cd275 commit c48bc1b

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/lint-pr-title.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
#This action is centrally managed in https://github.com/asyncapi/.github/
1+
#This action is centrally managed in https://github.com/asyncapi/.github/
22
#Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo
33

44
name: Lint PR title
55

66
on:
7-
87
pull_request_target:
98
types: [opened, reopened, synchronize, edited, ready_for_review]
109

1110
jobs:
12-
13-
lint:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: amannn/[email protected]
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# Since this workflow is REQUIRED for a PR to be mergable, we have to have this 'if' statement in step level instead of job level.
15+
- if: ${{ !contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]", "allcontributors"]'), github.actor) }}
16+
uses: amannn/[email protected]
1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
1919
with:

.github/workflows/sentiment-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ on:
2626
- edited
2727
jobs:
2828
test:
29+
if: ${{ !contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]", "allcontributors"]'), github.actor) }}
2930
name: Checking sentiments
3031
runs-on: ubuntu-latest
3132
steps:

.github/workflows/welcome-first-time-contrib.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313

1414
jobs:
1515
welcome:
16+
if: ${{ !contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]", "allcontributors"]'), github.actor) }}
1617
runs-on: ubuntu-latest
1718
steps:
1819
- uses: actions/github-script@v3

0 commit comments

Comments
 (0)