Skip to content

Commit

Permalink
Merge branch 'main' into updatecli_main_e6d141666bd851d4bac9467b898b5…
Browse files Browse the repository at this point in the history
…e908012a53932de7a805c0767c9e7aeb532
  • Loading branch information
olblak authored Mar 24, 2024
2 parents 42c83e3 + 468a3b4 commit 7c43010
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.5
go-version: 1.22.1
id: go
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v4
Expand Down
48 changes: 9 additions & 39 deletions updatecli/updatecli.d/golang/golang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Bump Golang Version

actions:
default:
title: '[updatecli] Bump Golang version to {{ source "golang" }}'
title: 'deps: Bump Golang version to {{ source "golang" }}'
kind: github/pullrequest
spec:
labels:
Expand All @@ -20,58 +20,28 @@ scms:
token: '{{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}'
user: updatecli
username: '{{ requiredEnv "UPDATECLI_GITHUB_ACTOR" }}'
commitmessage:
title: 'Bump Golang version to {{ source "golang" }}'
disabled: false

sources:
golang:
name: Get latest Golang version
kind: golang

conditions:
workflowgo:
name: Ensure GA step is defined in GitHub Action named go
kind: yaml
spec:
file: .github/workflows/go.yaml
key: $.jobs.build.steps[0].id
value: go
scmid: default
disablesourceinput: true

workflowrelease:
name: Ensure GA step is defined in GitHub Action named release
kind: yaml
spec:
file: .github/workflows/release.yaml
key: $.jobs.build.steps[3].id
value: go
scmid: default
disablesourceinput: true

targets:
go.mod:
name: 'Update Golang version to {{ source "golang" }}'
name: 'deps(gomod): Bump Golang version to {{ source "golang" }}'
kind: golang/gomod
scmid: default
sourceid: golang

release:
name: '[release.yaml] Update Golang version to {{ source "golang" }}'
github-action:
name: 'deps(github-action): Bump Golang version to {{ source "golang" }}'
kind: yaml
spec:
file: .github/workflows/release.yaml
key: $.jobs.build.steps[3].with.go-version
engine: yamlpath
files:
- '.github/workflows/*'
key: '$.jobs.build.steps[?(@.uses =~ /^actions\/setup-go/)].with.go-version'
searchpattern: true
scmid: default
sourceid: golang

workflowgo:
name: '[release.yaml] Update Golang version to {{ source "golang" }}'
kind: yaml
spec:
file: .github/workflows/go.yaml
key: $.jobs.build.steps[0].with.go-version
scmid: default
sourceid: golang

0 comments on commit 7c43010

Please sign in to comment.