mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-04 08:39:30 +03:00
45 lines
1.3 KiB
YAML
45 lines
1.3 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd
|
|
with:
|
|
ref: ${{ inputs.branch }}
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
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@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
|
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@5f6978faf089d4d20b00c7766989d076bb2fc7f1
|
|
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
|
|
```
|