Using actor to identify dependabot and skipp some actions. (#273)

This commit is contained in:
Philipp Horstenkamp 2023-10-26 19:29:25 +02:00 committed by GitHub
parent e7a778e4cb
commit 0e388eb927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: