From da3fc5a1a3fab248eb89e3eea8e0e22b541d5d8a Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 2 Mar 2022 12:15:28 +0100 Subject: [PATCH] ci: update global workflows (#554) --- .github/workflows/lint-pr-title.yml | 14 +++++++------- .github/workflows/sentiment-analysis.yml | 1 + .github/workflows/welcome-first-time-contrib.yml | 1 + 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml index fbee657e9..d9ea1e824 100644 --- a/.github/workflows/lint-pr-title.yml +++ b/.github/workflows/lint-pr-title.yml @@ -1,19 +1,19 @@ -#This action is centrally managed in https://github.com/asyncapi/.github/ +#This action is centrally managed in https://github.com/asyncapi/.github/ #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 name: Lint PR title on: - pull_request_target: types: [opened, reopened, synchronize, edited, ready_for_review] jobs: - - lint: - runs-on: ubuntu-latest - steps: - - uses: amannn/action-semantic-pull-request@v3.2.5 + lint: + runs-on: ubuntu-latest + steps: + # 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. + - if: ${{ !contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]", "allcontributors"]'), github.actor) }} + uses: amannn/action-semantic-pull-request@v3.2.5 env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} with: diff --git a/.github/workflows/sentiment-analysis.yml b/.github/workflows/sentiment-analysis.yml index 431d1937e..c1cde5c34 100644 --- a/.github/workflows/sentiment-analysis.yml +++ b/.github/workflows/sentiment-analysis.yml @@ -26,6 +26,7 @@ on: - edited jobs: test: + if: ${{ !contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]", "allcontributors"]'), github.actor) }} name: Checking sentiments runs-on: ubuntu-latest steps: diff --git a/.github/workflows/welcome-first-time-contrib.yml b/.github/workflows/welcome-first-time-contrib.yml index 8eb2a9935..e1a5faf04 100644 --- a/.github/workflows/welcome-first-time-contrib.yml +++ b/.github/workflows/welcome-first-time-contrib.yml @@ -13,6 +13,7 @@ on: jobs: welcome: + if: ${{ !contains(fromJson('["asyncapi-bot", "dependabot[bot]", "dependabot-preview[bot]", "allcontributors"]'), github.actor) }} runs-on: ubuntu-latest steps: - uses: actions/github-script@v3