Skip to content

Commit

Permalink
fix(actions): dependabot monorepo tidy modules
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Nov 9, 2024
1 parent 6865f3f commit 55b1306
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ updates:
- package-ecosystem: "gomod" # See documentation for possible values
directories:
- "/"
- "core"
- "extension"
- "/core"
- "/extension"
schedule:
interval: "daily"
assignees:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/dependabot-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: dependabot-fix

on:
pull_request:
branches:
- dependabot/go_modules/**
push:
branches:
- dependabot/go_modules/**

jobs:
tidy:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Golang env
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- uses: evantorrie/mott-the-tidier@v1-beta
with:
# mod tidy all modules except docs(hugo module)
gomods: |
**/go.mod
-docs/go.mod
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore(deps): tidy modules"

0 comments on commit 55b1306

Please sign in to comment.