mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
This is more in-line with dependabot and similar auto-updaters. Reduce ci coverage on github action updating (it does not change kubespray code, no need for testing).
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
on:
|
|
workflow_call:
|
|
inputs:
|
|
branch:
|
|
description: Which branch to update with new patch versions
|
|
default: master
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
update-patch-versions:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ inputs.branch }}
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.13'
|
|
cache: 'pip'
|
|
- run: pip install scripts/component_hash_update pre-commit
|
|
- run: update-hashes
|
|
env:
|
|
API_KEY: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: actions/cache@v4
|
|
with:
|
|
key: pre-commit-hook-propagate
|
|
path: |
|
|
~/.cache/pre-commit
|
|
- run: pre-commit run --all-files propagate-ansible-variables
|
|
continue-on-error: true
|
|
- uses: peter-evans/create-pull-request@v7
|
|
with:
|
|
commit-message: Patch versions updates
|
|
title: Patch versions updates - ${{ inputs.branch }}
|
|
labels: bot
|
|
branch: component_hash_update/${{ inputs.branch }}
|
|
sign-commits: true
|
|
body: |
|
|
/kind feature
|
|
|
|
```release-note
|
|
NONE
|
|
```
|