Create Release Branch #17
This file contains hidden or 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: "Create Release Branch" | |
on: | |
workflow_dispatch: | |
jobs: | |
create-release-branch: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v4" | |
- name: "Set up Python" | |
uses: "actions/setup-python@v5" | |
with: | |
python-version: "3.11" | |
- name: "Setup git" | |
run: | | |
git config user.name pulpbot | |
git config user.email pulp-infra@redhat.com | |
- name: "Install python dependencies" | |
run: | | |
pip install bump-my-version~=0.20.0 | |
- name: "Create Release Branch" | |
run: | | |
.ci/scripts/create_release_branch.sh | |
- name: "Create Pull Request" | |
uses: "peter-evans/create-pull-request@v7" | |
with: | |
token: "${{ secrets.RELEASE_TOKEN }}" | |
title: "Bump dev-version" | |
body: "" | |
branch: "bump_version" | |
delete-branch: true | |
- name: "Add Backport Label for new Branch" | |
uses: "actions/github-script@v7" | |
with: | |
script: | | |
const { NEW_BRANCH } = process.env; | |
const labelName = "backport-" + NEW_BRANCH; | |
await github.rest.issues.createLabel({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
name: labelName, | |
color: "C8780A", | |
}); | |
... |