2020-06-22 09:34:11 -07:00
|
|
|
name: Dependabot-Tidier
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [ labeled ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
mod_tidier:
|
|
|
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'dependencies') }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-10 07:55:55 -07:00
|
|
|
- uses: actions/checkout@v4
|
2020-06-22 09:34:11 -07:00
|
|
|
with:
|
|
|
|
ref: ${{ github.head_ref }}
|
2023-12-10 07:58:06 -08:00
|
|
|
- uses: actions/setup-go@v5
|
2020-06-22 09:34:11 -07:00
|
|
|
with:
|
2023-10-18 08:14:16 +02:00
|
|
|
go-version: "~1.21.3"
|
2023-10-16 11:20:21 +02:00
|
|
|
check-latest: true
|
|
|
|
cache-dependency-path: "**/go.sum"
|
2020-06-22 09:34:11 -07:00
|
|
|
- uses: evantorrie/mott-the-tidier@v1-beta
|
|
|
|
id: modtidy
|
|
|
|
with:
|
|
|
|
gomods: '**/go.mod'
|
2020-06-24 13:35:14 -07:00
|
|
|
gomodsum_only: true
|
2023-10-09 12:03:54 +02:00
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
2020-06-22 09:34:11 -07:00
|
|
|
id: autocommit
|
|
|
|
with:
|
|
|
|
commit_message: Auto-fix go.sum changes in dependent modules
|
|
|
|
- name: changes
|
|
|
|
run: |
|
|
|
|
echo "Changes detected: ${{ steps.autocommit.outputs.changes_detected }}"
|