Skip to content

Commit

Permalink
👷 Update workflow conditions to include dependabot[bot] as an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
NatoBoram committed Mar 2, 2024
1 parent 9fb6b35 commit a49946a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/dependency-submission.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
dependency-submission:
runs-on: ubuntu-latest

if: github.actor != 'nektos/act'

permissions:
contents: write

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- run: ./gradlew build

- name: Sign
if: github.actor != 'nektos/act' && (github.ref_type == 'tag' || github.ref_name == 'main')
if: github.actor != 'nektos/act' && github.actor != 'dependabot[bot]' && (github.ref_type == 'tag' || github.ref_name == 'main')
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.DEPLOY_KEY_PRIVATE }}'
Expand Down

0 comments on commit a49946a

Please sign in to comment.