Skip to content

🐹 Go Update

🐹 Go Update #79

Workflow file for this run

name: 🐹 Go Update
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
Go-Update:
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@v4
- name: 🐹 Get the Latest Go Version
id: go
run: |
version="$(curl "https://go.dev/VERSION?m=text" | head -n 1)"
echo "version=${version#go}" | tee -a "$GITHUB_OUTPUT"
- name: πŸ“‹ Find and Replace the Gum Version
id: find-replace
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "go [0-9]+.[0-9]+.[0-9]+"
replace: "go ${{ steps.go.outputs.version }}"
include: "go.mod"
- name: 🎈 Create Pull Request
if: ${{ steps.find-replace.outputs.modifiedFiles > 0 }}
uses: peter-evans/create-pull-request@v6
with:
commit-message: |
chore(setup): Version up Go
Change Go version to v${{ steps.go.outputs.version }}.
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
branch: bump-go
title: "chore(deps): Bump Go version to ${{ steps.go.outputs.version }}"
body: Bumps Go version to ${{ steps.go.outputs.version }}
labels: "Type: Dependencies"