forked from score-spec/score-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.69 KB
/
Copy pathupgrade-go-version.yaml
File metadata and controls
46 lines (46 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Upgrade Go version
on:
workflow_dispatch:
inputs:
go-version:
required: true
go-toolchain-version:
required: true
permissions:
contents: read
jobs:
upgrade-go-version:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version: ${{ github.event.inputs.go-toolchain-version }}
- name: go get all
run: |
go mod edit -go ${{ github.event.inputs.go-version }}
go mod edit -toolchain go${{ github.event.inputs.go-toolchain-version }}
go get -u all
go mod tidy
- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Upgrade Go version to ${{ github.event.inputs.go-toolchain-version }}
title: Upgrade Go version to ${{ github.event.inputs.go-toolchain-version }}
body: |
Upgrade Go version to ${{ github.event.inputs.go-toolchain-version }}:
https://go.dev/doc/devel/release
- [ ] Set PR as "Ready for review"
- [ ] Check CI
- [ ] Submit PR review
branch: upgrade-go
delete-branch: true
signoff: true
draft: always-true # Because of: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs.