Skip to content

Commit aa26707

Browse files
authoredMar 1, 2022
ci: update global workflows (asyncapi#724)
1 parent 8ff3d0d commit aa26707

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed
 

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

+7-7
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/action-semantic-pull-request@v3.2.5
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/action-semantic-pull-request@v3.2.5
1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
1919
with:

‎.github/workflows/sentiment-analysis.yml

+1
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

+1
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)
Please sign in to comment.