Skip to content

Commit 7cfd07f

Browse files
authored
Merge pull request #2447 from sbueringer/pr-add-dependabot-action
🌱 Add action to update modules on dependabot PRs
2 parents 5dfea3c + c9e133a commit 7cfd07f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/pr-dependabot.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PR dependabot go modules fix
2+
3+
# This action runs on PRs opened by dependabot and updates modules.
4+
on:
5+
pull_request:
6+
branches:
7+
- dependabot/**
8+
push:
9+
branches:
10+
- dependabot/**
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: write # Allow to update the PR.
15+
16+
jobs:
17+
build:
18+
name: Build
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Check out code
22+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # tag=v3.5.3
23+
- name: Set up Go
24+
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # tag=v4.0.1
25+
with:
26+
go-version: '1.20'
27+
- name: Update all modules
28+
run: make modules
29+
- uses: EndBug/add-and-commit@1bad3abcf0d6ec49a5857d124b0bfb52dc7bb081 # tag=v9.1.3
30+
name: Commit changes
31+
with:
32+
author_name: dependabot[bot]
33+
author_email: [email protected]
34+
default_author: github_actor
35+
message: 'Update generated code'

0 commit comments

Comments
 (0)