Skip to content

Commit

Permalink
Merge pull request #73 from olblak/main
Browse files Browse the repository at this point in the history
fix: updatecli policy for golang
  • Loading branch information
olblak authored Mar 24, 2024
2 parents 05efacd + 3162acc commit ca26782
Showing 1 changed file with 9 additions and 39 deletions.
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 ca26782

Please sign in to comment.