This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
Update Go Mod Vendor #782
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
name: Update Go Mod Vendor | |
on: | |
schedule: | |
- cron: '0 9 * * *' # Every day at 9:00 a.m. | |
workflow_dispatch: | |
jobs: | |
update-go-mod-vendor: | |
if: github.repository == 'Azure/aks-engine' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: 'go.mod' | |
- name: run go mod vendor | |
run: make vendor | |
- name: validate no changes | |
run: git diff-index --quiet HEAD -- || echo "MAKE_PR=true" >> $GITHUB_ENV | |
- name: create pull request | |
if: ${{ env.MAKE_PR == 'true' }} | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
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-go-mod-vendor-updates | |
base: master |