Skip to content

Commit

Permalink
ci: ignore build steps for dependabot (#1033)
Browse files Browse the repository at this point in the history
* ci: ignore build steps for dependabot prs

* ci: Prevent delete-tag job for PRs from forks
  • Loading branch information
fmartingr authored Dec 21, 2024
1 parent ed15f14 commit 52154f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ jobs:
uses: ./.github/workflows/_gorelease.yml
call-buildx:
needs: call-gorelease
# only build on pull requests from the same repo for now
if: github.event.pull_request.head.repo.full_name == github.repository
if: ${{ startsWith(github.head_ref, 'dependabot/') }}
uses: ./.github/workflows/_buildx.yml
call-buildx-alpine:
needs: call-gorelease
# only build on pull requests from the same repo for now
if: github.event.pull_request.head.repo.full_name == github.repository
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
uses: ./.github/workflows/_buildx.yml
with:
tag_prefix: alpine-
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pull_request_closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ on:
jobs:
delete-tag:
uses: ./.github/workflows/_delete-registry-tag.yml
if: github.event.pull_request.head.repo.fork == false
with:
tag_name: pr-${{ github.event.pull_request.number }}

0 comments on commit 52154f4

Please sign in to comment.