Skip to content

Commit

Permalink
chore(workflow): update dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefmikey committed Feb 20, 2024
1 parent 8778611 commit 3c0ce45
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 30 deletions.
40 changes: 14 additions & 26 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,25 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: github-actions
directory: /
schedule:
interval: "daily"
time: "12:00"
timezone: "America/Denver"
interval: daily
time: 12:00
timezone: America/Denver
commit-message:
prefix: "npm"
prefix: actions
labels:
- "dependencies"
- dependencies
open-pull-requests-limit: 100

- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: docker
directory: /
schedule:
interval: "daily"
time: "12:00"
timezone: "America/Denver"
interval: daily
time: 12:00
timezone: America/Denver
commit-message:
prefix: "actions"
prefix: docker
labels:
- "dependencies"
open-pull-requests-limit: 100

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"
time: "12:00"
timezone: "America/Denver"
commit-message:
prefix: "docker"
labels:
- "dependencies"
- dependencies
open-pull-requests-limit: 100
9 changes: 5 additions & 4 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
auto-merge:
Expand All @@ -12,8 +13,8 @@ jobs:
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge "$PR_URL" --auto --squash --subject "$COMMIT_MESSAGE"
run: gh pr merge "$PR_URL" --auto --squash --delete-branch --subject "$COMMIT_MESSAGE"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.DISPATCH_WORKFLOW}}
COMMIT_MESSAGE: ${{github.event.pull_request.title}}
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_MESSAGE: ${{ github.event.pull_request.title }}

0 comments on commit 3c0ce45

Please sign in to comment.