Update Dependencies #2
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-24.04 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 | |
with: | |
go-version-file: 'go.mod' | |
- 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@c5a7806660adbe173f04e3e038b0ccdcd758773c | |
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... |