Skip to content

Commit

Permalink
Trim for first line of log, which contains title.
Browse files Browse the repository at this point in the history
  • Loading branch information
klaases committed Dec 21, 2021
1 parent 6b79132 commit ec4818f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/update-k8s-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- cron: "0 8 * * 1"
env:
GOPROXY: https://proxy.golang.org
GO_VERSION: "1.17.5"
GO_VERSION: '1.17.5'
jobs:
bump-k8s-versions:
runs-on: ubuntu-20.04
Expand All @@ -20,6 +20,7 @@ jobs:
id: bumpk8s
run: |
t=$(make update-kubernetes-version)
t=$(head -n 1 t)
echo "::set-output name=title::$t"
c=$(git status --porcelain)
c="${c//$'\n'/'%0A'}"
Expand Down
3 changes: 1 addition & 2 deletions hack/update/kubernetes_version/update_kubernetes_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ func main() {
data := Data{StableVersion: stable, LatestVersion: latest, LatestVersionMM: latestMM, LatestVersionP0: latestP0}

// Print PR title for Github action.
fmt.Printf("bump kubernetes version default: %s and latest: %s", data.StableVersion, data.LatestVersion)
klog.Infof("Kubernetes versions: 'stable' is %s and 'latest' is %s", data.StableVersion, data.LatestVersion)
fmt.Printf("Bump Kubernetes version default: %s and latest: %s\n", data.StableVersion, data.LatestVersion)

update.Apply(ctx, schema, data, prBranchPrefix, prTitle, prIssue)
}
Expand Down

0 comments on commit ec4818f

Please sign in to comment.