This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
Update go dependencies #184
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: | |
# Enable manual trigger of this action. | |
schedule: | |
# Run once every day. This will result in a PR the day updates are | |
# available. If the PR isn't merged, the action will run again the next day | |
# and pushes the changes to the same PR branch, updating the existing PR. | |
- cron: '0 0 * * 3' | |
jobs: | |
update-go-deps: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.17.9' | |
- name: Update dependencies | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
export GOPATH=$(go env GOPATH) | |
make go-autogen | |
- name: Create pull request | |
id: cpr | |
uses: peter-evans/create-pull-request@v4.0.1 | |
with: | |
commit-message: "[automated] Update go dependencies" | |
branch: go-deps-patch | |
delete-branch: true | |
title: "[automated] Update go dependencies" | |
- name: Pull request info | |
run: | | |
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |