Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply transitive dependabot go.mod dependency updates as part of automatic Github workflow #844

Merged
merged 3 commits into from
Jun 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-go@v2
with:
go-version: '^1.14.0'
- uses: evantorrie/mott-the-tidier@v1-beta
id: modtidy
with:
gomods: '**/go.mod'
gosum_only: true
- uses: stefanzweifel/git-auto-commit-action@v4
id: autocommit
with:
commit_message: Auto-fix go.sum changes in dependent modules
- name: changes
run: |
echo "Changes detected: ${{ steps.autocommit.outputs.changes_detected }}"