chore: leverage panchoh/go-bump action

Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
This commit is contained in:
pancho horrillo
2020-06-26 13:30:17 +02:00
parent 2e5e11cc47
commit 94f1e7e6ea
3 changed files with 35 additions and 3 deletions
+29
View File
@@ -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 -3
View File
@@ -5,9 +5,6 @@ on:
tags:
- v*.*.*
env:
GO_VERSION: 1.14.4
jobs:
build:
@@ -18,6 +15,11 @@ jobs:
with:
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
with:
go-version: ${{ env.GO_VERSION }}