Skip to content

Bump latest Kubernetes dependecies #1

Bump latest Kubernetes dependecies

Bump latest Kubernetes dependecies #1

Workflow file for this run

name: Bump latest Kubernetes dependecies
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # Run daily at midnight
workflow_dispatch:
jobs:
bump-to-latest-pre-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Bump latest k8s.io dependices
run: bash ./hack/bump-k8s-dep.sh
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Check for changes
id: changes
run: |
git diff --quiet || echo "Changes detected"
- name: Create PR
if: steps.changes.outputs.stdout
run: |
git add .
git commit -sm "Bump the kubernetes group updates"
git push
gh pr create --base master --head "origin/master" --title ":seedling: Bump the kubernetes group updates" --label "ok-to-test" --body "This is an automated pull request generated to bump latest k8s dependencies."
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}