Skip to content

Commit

Permalink
chore: disable on dependabot branch
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Oct 15, 2024
1 parent df1df74 commit 5e02283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ name: Test & Build

on:
workflow_call:
inputs:
disable_deploy:
type: boolean
default: false
push:
branches:
- main
Expand Down Expand Up @@ -51,7 +47,7 @@ jobs:
- run: make lint

deploy:
if: ${{ github.actor != 'dependabot[bot]' }} && ${{ inputs.disable_deploy == false }}
if: ${{ github.ref != 'ref/head/dependabot' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ jobs:
permissions:
checks: write
uses: ./.github/workflows/main.yml
with:
disable_deploy: ${{ github.actor == 'dependabot[bot]' }}
plan:
if: ${{ github.actor != 'dependabot[bot]' }}
if: ${{ github.ref != 'ref/head/dependabot' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 5e02283

Please sign in to comment.