Update Go dependencies #36
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
name: Update Go dependencies | |
on: workflow_dispatch | |
jobs: | |
update-go: | |
name: Update Go dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.19.x | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Update Go dependencies | |
run: | | |
go get -u | |
go mod tidy | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: "${{ secrets.GH_PAT }}" | |
add-paths: | | |
go.mod | |
go.sum | |
commit-message: go get -u | |
title: go get -u | |
branch: go-update | |
author: "github-actions <[email protected]>" |