chore: leverage panchoh/go-bump action
Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
1.14.3
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
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 }}
|
||||||
@@ -5,9 +5,6 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- v*.*.*
|
- v*.*.*
|
||||||
|
|
||||||
env:
|
|
||||||
GO_VERSION: 1.14.4
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
@@ -18,6 +15,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Load Go version
|
||||||
|
id: go-version
|
||||||
|
run: |
|
||||||
|
echo "::set-env name=GO_VERSION::$(tr -d '\n' < .github/versions/go)"
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|||||||
Reference in New Issue
Block a user