Update Dependencies #5
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 Dependencies' | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * 5' | |
env: | |
GOPROXY: https://proxy.golang.org | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
update-deps: | |
if: ${{ github.repository == 'kubernetes/kops' }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 | |
with: | |
go-version: '1.22.0' | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Update Dependencies | |
id: update_deps | |
run: | | |
make depup | |
echo 'changes<<EOF' >> $GITHUB_OUTPUT | |
git status --porcelain >> $GITHUB_OUTPUT | |
echo 'EOF' >> $GITHUB_OUTPUT | |
- name: Create PR | |
if: ${{ steps.update_deps.outputs.changes != '' }} | |
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc | |
with: | |
title: 'Update dependencies' | |
commit-message: Update dependencies | |
committer: github-actions <[email protected]> | |
author: github-actions <[email protected]> | |
branch: dependencies/update | |
branch-suffix: timestamp | |
base: master | |
delete-branch: true | |
labels: ok-to-test | |
body: | | |
Updating go.mod with latest dependencies... |