Skip to content

Commit

Permalink
chore: run deployment on dependabot PRs without label (#2291)
Browse files Browse the repository at this point in the history
Reason: otherwise actions for dependabot PRs are run twice (once for
opening, and once for adding the label)
  • Loading branch information
tobiasdiez authored Nov 30, 2023
1 parent abf37d3 commit b92bb43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ updates:
open-pull-requests-limit: 20
schedule:
interval: 'monthly'
labels:
- 'type: dependencies'
- 'status: safe to test'
commit-message:
prefix: 'chore'
groups:
Expand Down Expand Up @@ -76,8 +73,5 @@ updates:
open-pull-requests-limit: 20
schedule:
interval: 'monthly'
labels:
- 'type: dependencies'
- 'status: safe to test'
commit-message:
prefix: 'chore'
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# We could also add these checks to a job-wide if condition, to skip the workflow if its unsecure to run.
# However, Github views skipped workflows as "successful" and thus one could merge a PR without running this workflow first.
- name: Fail if unsecure
if: "github.event_name != 'workflow_dispatch' && !contains(github.event.pull_request.labels.*.name, 'status: safe to test') && github.actor != 'tobiasdiez'"
if: "github.event_name != 'workflow_dispatch' && !contains(github.event.pull_request.labels.*.name, 'status: safe to test') && github.actor != 'tobiasdiez' && github.actor != 'dependabot[bot]'"
run: exit 1

- name: Checkout
Expand Down

0 comments on commit b92bb43

Please sign in to comment.