From fc3973c8432120c96df8775fcdcc58567d8bac5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Mon, 2 Aug 2021 01:20:57 +0200 Subject: [PATCH] .github/ci.yml: Don't build containers for dependabot updates Dependabot does not have access to secrets, so skip building containers --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29b79e98..0052eff1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,10 +74,10 @@ jobs: run: | make kube-router - # Builds Container on Push Event, not run if there's a Tag Event + # Builds Container only if a new push to main branch, a tag or a pull request from a source branch within the repository ci-build-container: runs-on: ubuntu-latest - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} + if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') }} steps: - name: Checkout uses: actions/checkout@v2