From 7e542969c868eaee27138a5e5a206f90448ab80c Mon Sep 17 00:00:00 2001 From: Danil Grigorev Date: Wed, 13 Mar 2024 14:13:44 +0100 Subject: [PATCH] :sparkles: Create dependabot.yml to run make generate on each dependabot PR (#408) Signed-off-by: Danil Grigorev --- .github/workflows/dependabot.yml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/dependabot.yml diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 00000000..4d2bf7ab --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -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'