Skip to content

Commit

Permalink
Merge pull request #2447 from sbueringer/pr-add-dependabot-action
Browse files Browse the repository at this point in the history
馃尡 Add action to update modules on dependabot PRs
  • Loading branch information
k8s-ci-robot committed Aug 15, 2023
2 parents 5dfea3c + c9e133a commit 7cfd07f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pr-dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: PR dependabot go modules fix

# This action runs on PRs opened by dependabot and updates modules.
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: Check out code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # tag=v3.5.3
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # tag=v4.0.1
with:
go-version: '1.20'
- name: Update all modules
run: make modules
- uses: EndBug/add-and-commit@1bad3abcf0d6ec49a5857d124b0bfb52dc7bb081 # tag=v9.1.3
name: Commit changes
with:
author_name: dependabot[bot]
author_email: support@github.com
default_author: github_actor
message: 'Update generated code'

0 comments on commit 7cfd07f

Please sign in to comment.