This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: standardize go mod vendor (#4539)
- Loading branch information
1 parent
dc1ca24
commit 94d847e
Showing
3 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
18 changes: 9 additions & 9 deletions
18
.github/workflows/update-tools.yaml → .github/workflows/update-go-mod-vendor.yaml
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,27 +1,27 @@ | ||
name: Update Tools | ||
name: Update Go Mod Vendor | ||
on: | ||
schedule: | ||
- cron: '0 9 * * *' # Every day at 9:00 a.m. | ||
workflow_dispatch: | ||
jobs: | ||
generate-azure-consts: | ||
udpate-go-mod-vendor: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.16' | ||
- name: update hack/tools | ||
run: make tools-reload | ||
- name: run go mod vendor | ||
run: make vendor | ||
- name: validate no changes | ||
run: git diff-index --quiet HEAD -- | ||
run: git diff-index --quiet HEAD -- || echo "MAKE_PR=true" >> $GITHUB_ENV | ||
- name: create pull request | ||
if: ${{ failure() }} | ||
if: ${{ env.MAKE_PR == 'true' }} | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
commit-message: 'chore: Update hack/tools dependencies' | ||
title: 'chore: Update hack/tools dependencies' | ||
body: Automated update of hack/tools dependencies | ||
commit-message: 'chore: Update go mod vendor directories' | ||
title: 'chore: Update go mod vendor directories' | ||
body: Automated update of go mod vendor directories | ||
branch: apply-hack-tools-updates | ||
base: master |
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 |
---|---|---|
|
@@ -25,3 +25,7 @@ clean: | |
.PHONY: tidy | ||
tidy: | ||
$(GO) mod tidy | ||
|
||
.PHONY: vendor | ||
vendor: | ||
$(GO) mod vendor |