chore(deps): update actions/setup-python action to v5.1.1 (release-1.… #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Renovate | |
on: | |
push: | |
branches: | |
- release-* | |
jobs: | |
renovate: | |
name: Renovate | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
ref: main | |
- name: Install Python | |
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | |
with: | |
python-version: '3.12' | |
- name: Install python requirements | |
run: pip install -r hack/requirements.txt | |
- name: Find last 3 release branches | |
run: | | |
git fetch --prune --tags | |
git branch -r --list 'origin/release-*' | sort --version-sort | tail -n 3 | tr -d ' ' > release-branches.txt | |
echo latest branches: | |
cat release-branches.txt | |
- name: Update renovate file | |
run: | | |
python3 hack/build/ci/update-renovate-json5.py release-branches.txt .github/renovate.json5 | |
- name: Create pull request for adding new release branches to renovate.json5 | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
base: main | |
delete-branch: true | |
branch: create-pull-request/update-renovate-json5 | |
branch-suffix: short-commit-hash | |
add-paths: | | |
.github/renovate.json5 | |
title: '[Automatic] Update renovate config for ${{ github.ref }}' | |
labels: 'ci' | |
commit-message: Update renovate.json5 | |
committer: GitHub <noreply@github.com> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
body: | | |
# Description | |
Upgrade `renovate.json5` to include last 3 release branches. | |
## How can this be tested? | |
Check renovate app. | |
## Checklist | |
- [x] PR is labeled accordingly |