From d6e8e7a3b311b4fca96939fb63b9c37d06996e2d Mon Sep 17 00:00:00 2001 From: Marco Carrozzo Date: Mon, 30 Jan 2023 16:34:38 +0100 Subject: [PATCH] AAE-12412 - dependabot actor check (#8210) * AAE-12412 * AAE-12412 --- .github/workflows/pull-request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 68121040f9..3abc13f54e 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -75,7 +75,7 @@ jobs: - name: Check if PR is approved id: action - if: ${{ github.event_name != 'schedule' }} + if: ${{ github.event_name != 'schedule' || github.actor != 'dependabot[bot]' }} uses: kamatama41/get-pr-number-action@v0 with: github_token: ${{ secrets.GITHUB_TOKEN }} @@ -85,7 +85,7 @@ jobs: GH_TOKEN: ${{ github.token }} DEVEL_FLAG: false #put it to true if you need to develop the pipeline on your own branch. before the final merge put it to false shell: bash - if: ${{ github.event_name != 'schedule' }} + if: ${{ github.event_name != 'schedule' || github.actor != 'dependabot[bot]' }} run: | if [[ "$DEVEL_FLAG" = false ]] ; then echo "PR number is: ${{ steps.action.outputs.number }}"