From 0e388eb9272e72aa9eb9f118829d3bbd333be801 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Thu, 26 Oct 2023 19:29:25 +0200 Subject: [PATCH] Using actor to identify dependabot and skipp some actions. (#273) --- .github/workflows/test-and-build-action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-and-build-action.yaml b/.github/workflows/test-and-build-action.yaml index ef1e8ca..d059dad 100644 --- a/.github/workflows/test-and-build-action.yaml +++ b/.github/workflows/test-and-build-action.yaml @@ -45,7 +45,7 @@ jobs: coverage_pull_request: name: Coverage Report on pull request - if: ${{ github.event_name == 'pull_request' && !startsWith(github.ref, 'refs/heads/dependabot/')}} + if: ${{ github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'}} runs-on: ubuntu-latest needs: test steps: @@ -114,7 +114,7 @@ jobs: docker-build: name: Docker Build - if: ${{ github.event_name == 'push' && !startsWith(github.ref, 'refs/heads/dependabot/')}} + if: ${{ github.event_name == 'push' && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'}} runs-on: ubuntu-latest needs: [build] steps: