-
Notifications
You must be signed in to change notification settings - Fork 18
36 lines (33 loc) · 998 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
34
35
36
name: dependabot
on:
pull_request:
types: [opened, edited, synchronize, reopened, labeled, unlabeled]
branches:
- dependabot/**
push:
branches:
- dependabot/**
workflow_dispatch:
permissions:
contents: write # Allow to update the PR.
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # tag=v3.5.0
with:
go-version: 1.22.0
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # tag=v4.1.3
- name: Update generated code
run: make generate
- name: Commit changes
run: |
git config --local user.email "49699333+dependabot[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
[[ -z "$(git status -s)" ]] || git commit -m "Update generated code"
git push