Skip to content

Commit

Permalink
🔧 Disable pushing to external sources for dependabot MRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Klaus committed Nov 9, 2024
1 parent 4aed658 commit f08d491
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend-sonarqube-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
build-and-analyse:
if: ${{ github.actor != 'dependabot[bot]' }}
if: ${{ !startsWith(github.ref, 'refs/heads/dependabot') }}
runs-on: ubuntu-latest

strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ jobs:
context: backend/${{ matrix.service.directory }}
file: backend/${{ matrix.service.directory }}/src/main/docker/Dockerfile.jvm
# don't push dependabot branches
push: ${{ !startsWith(github.ref, 'refs/heads/dependabot/maven/backend') }}
push: ${{ !startsWith(github.ref, 'refs/heads/dependabot') }}
tags: ${{ steps.meta.outputs.tags }} # tags from the docker/metadata-action
2 changes: 1 addition & 1 deletion .github/workflows/dependency-track-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
upload-bom:
if: ${{ github.actor != 'dependabot[bot]' }}
if: ${{ !startsWith(github.ref, 'refs/heads/dependabot') }}
runs-on: ubuntu-latest

strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/frontend-dependency-track.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
build:
if: ${{ !startsWith(github.ref, 'refs/heads/dependabot/maven/backend') }}
if: ${{ !startsWith(github.ref, 'refs/heads/dependabot') }}
runs-on: ubuntu-latest

strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ jobs:
with:
context: ${{ matrix.baseDirectory }}
file: ${{ matrix.baseDirectory }}/docker/Dockerfile
push: ${{ !startsWith(github.ref, 'refs/heads/dependabot/maven/backend') }}
push: ${{ !startsWith(github.ref, 'refs/heads/dependabot') }}
tags: ghcr.io/${{ github.repository }}/frontend:${{ env.VERSION }}

0 comments on commit f08d491

Please sign in to comment.