Skip to content

Bump latest Kubernetes dependecies #11

Bump latest Kubernetes dependecies

Bump latest Kubernetes dependecies #11

Workflow file for this run

name: Bump latest Kubernetes dependecies
on:
schedule:
- cron: '0 0 */2 * *' # Run every two days at UTC midnight
workflow_dispatch: # Use for manaully trigger to debug
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-file: 'go.mod'
- name: Bump latest k8s.io dependencies
run: bash ./hack/bump-k8s-dep.sh
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "[email protected]"
- name: Check for changes and update version
id: changes
run: |
git_diff_output=$(git diff)
if [ -n "$git_diff_output" ]; then
echo "changes=true" >> $GITHUB_OUTPUT
fi
- name: Create PR
if: steps.changes.outputs.changes
run: |
HEAD_BRANCH="github-actions/auto-bump/k8s-dependencies-$(date +'%Y%m%d%H%M%S')"
git checkout -b "$HEAD_BRANCH"
git add go.mod go.sum
git commit -sm "Bump Kubernetes group dependencies updates"
git push origin "$HEAD_BRANCH"
gh pr create --base master --title ":seedling: Bump the Kubernetes group updates " --body "This is an automatically generated pull request to bump the latest k8s dependencies."
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}