Skip to content

go

go #4383

Workflow file for this run

name: go
on:
workflow_dispatch:
schedule:
- cron: "0 * * * *"
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
cache: true
go-version-file: go.mod
- name: go update
id: go
run: |
VERSION=$(go run .)
MINOR_VERSION=$(echo $VERSION | grep -oP '^\d+\.\d+')
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "minor-version=${MINOR_VERSION}" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: go-${{ steps.go.outputs.version }}
commit-message: Go v${{ steps.go.outputs.version }}
title: Go v${{ steps.go.outputs.version }}
body: |
https://go.dev/doc/devel/release#go${{ steps.go.outputs.minor-version }}
reviewers: arbourd
token: ${{ secrets.GITHUB_TOKEN }}