-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Create dependabot.yml to run make generate on each dependabot PR (#408
) Signed-off-by: Danil Grigorev <[email protected]>
- Loading branch information
1 parent
82b4e17
commit 7e54296
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: dependabot | ||
|
||
on: | ||
pull_request: | ||
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.20.7' | ||
id: go | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3.3.0 | ||
- name: Update generated code | ||
run: make generate | ||
- uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # tag=v9.1.4 | ||
name: Commit changes | ||
with: | ||
author_name: dependabot[bot] | ||
author_email: 49699333+dependabot[bot]@users.noreply.github.com | ||
default_author: github_actor | ||
message: 'Update generated code' |