forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1003 Bytes
/
dependabot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This github action adds a new commit to the Dependabot PRs when running "go mod tidy" produces changes.
name: Dependabot-Tidier
on:
pull_request_target:
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/[email protected]
with:
go-version: '^1.16.0'
- uses: codeboten/mott-the-tidier@v1-beta1
id: modtidy
with:
gomods: '**/go.mod'
gomodsum_only: true
remove_gosum: true
directives: |
1.16
1.17
- 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 }}"