-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updates to most recent pipeline-builder version - Updates pipelines to use Go 1.18 - Updates pipelines to use 'go install' instead of 'go get' - Adds a pipeline to check for and update Go versions & to check for transitive go.mod updates, which dependabot does not do Signed-off-by: Daniel Mikusa <[email protected]> Signed-off-by: Daniel Mikusa <[email protected]> Co-authored-by: Sambhav Kothari <[email protected]>
- Loading branch information
Showing
8 changed files
with
85 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.21.2 | ||
1.25.2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Synchronize Labels | |
"on": | ||
push: | ||
branches: | ||
- main | ||
- release-1.x | ||
paths: | ||
- .github/labels.yml | ||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Update Go | ||
"on": | ||
schedule: | ||
- cron: 0 2 * * 1 | ||
workflow_dispatch: {} | ||
jobs: | ||
update: | ||
name: Update Go | ||
runs-on: | ||
- ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
- uses: actions/checkout@v3 | ||
- name: Update Go Version | ||
id: update-go | ||
run: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
if [ -z "${GO_VERSION:-}" ]; then | ||
echo "No go version set" | ||
exit 1 | ||
fi | ||
OLD_GO_VERSION=$(grep -P '^go \d\.\d+' go.mod | cut -d ' ' -f 2) | ||
go mod edit -go="$GO_VERSION" | ||
go mod tidy | ||
go get -u all | ||
go mod tidy | ||
git add go.mod go.sum | ||
git checkout -- . | ||
echo "::set-output name=old-go-version::${OLD_GO_VERSION}" | ||
echo "::set-output name=go-version::${GO_VERSION}" | ||
env: | ||
GO_VERSION: "1.18" | ||
- uses: peter-evans/create-pull-request@v4 | ||
with: | ||
author: ${{ secrets.IMPLEMENTATION_GITHUB_USERNAME }} <${{ secrets.IMPLEMENTATION_GITHUB_USERNAME }}@users.noreply.github.com> | ||
body: |- | ||
Bumps Go from `${{ steps.update-go.outputs.old-go-version }}` to `${{ steps.update-go.outputs.go-version }}`. | ||
<details> | ||
<summary>Release Notes</summary> | ||
${{ steps.pipeline.outputs.release-notes }} | ||
</details> | ||
branch: update/go | ||
commit-message: |- | ||
Bump Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }} | ||
Bumps Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }}. | ||
delete-branch: true | ||
labels: semver:minor, type:task | ||
signoff: true | ||
title: Bump Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }} | ||
token: ${{ secrets.IMPLEMENTATION_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters