chore: update bump-go workflow
. Fix path to repo for 'Bump Go' action . Use and update the same PR until accepted, to reduce noise
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
name: Bump Go
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: 00 7 * * *
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
bump-go:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Clone current repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Ensure Go is up-to-date
|
||||||
|
id: bump-go
|
||||||
|
uses: BBVA/bump-go@main
|
||||||
|
with:
|
||||||
|
go-version-path: .github/versions/go
|
||||||
|
|
||||||
|
- name: Create pull request
|
||||||
|
uses: peter-evans/create-pull-request@v3
|
||||||
|
with:
|
||||||
|
title: Bump Go
|
||||||
|
commit-message: Bump Go to version '${{ steps.bump-go.outputs.go-version }}'
|
||||||
|
branch: bump-go/patch
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
name: Bump Go
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: 00 7 * * *
|
|
||||||
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
go-bump:
|
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Clone current repo
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Bump Go
|
|
||||||
id: go-bump
|
|
||||||
uses: panchoh/go-bump@master
|
|
||||||
|
|
||||||
- name: Create pull request
|
|
||||||
uses: peter-evans/create-pull-request@v2
|
|
||||||
with:
|
|
||||||
title: ${{ steps.go-bump.outputs.pr-title }}
|
|
||||||
commit-message: ${{ steps.go-bump.outputs.pr-title }}
|
|
||||||
branch: ${{ steps.go-bump.outputs.branch-name }}
|
|
||||||
Reference in New Issue
Block a user