Skip to content

chore(deps): bump ruby/setup-ruby from 1.254.0 to 1.265.0 #4752

chore(deps): bump ruby/setup-ruby from 1.254.0 to 1.265.0

chore(deps): bump ruby/setup-ruby from 1.254.0 to 1.265.0 #4752

# This workflow will regenerate code and manifests, commit&push them on a PR labeled with `renovate/auto-regenerate`.
# It's to make sure that Renovate-created PRs that update dependencies that might affect generated code/manifests,
# will have them regenerated automatically.
name: Regenerate on deps bump
on:
pull_request:
types:
- labeled
permissions:
contents: read
jobs:
regenerate:
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT || 10) }}
if: contains(github.event.*.labels.*.name, 'renovate/auto-regenerate')
runs-on: ubuntu-latest
env:
REF: ${{ github.event.pull_request.head.ref }}
permissions:
contents: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ env.REF }}
token: ${{ secrets.K8S_TEAM_BOT_GH_PAT }}
- name: setup golang
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version-file: go.mod
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
with:
install: false
- name: go mod tidy
run: go mod tidy
- name: regenerate
run: make generate manifests
- name: commit and push (if changes detected)
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git add go.mod go.sum ./test/e2e/manifests ./config/crd
git status
git diff-index --quiet HEAD || \
git commit -m "chore: regenerate" && \
git push origin ${{ env.REF }}