Create Release PR #16
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
defaults: | |
run: | |
shell: "bash" | |
name: "Create Release PR" | |
on: | |
workflow_dispatch: | |
inputs: | |
args: | |
description: "Badabump arguments (pass `--pre` to start or keep pre-release cycle)" | |
required: false | |
default: "" | |
env: | |
PYTHONUNBUFFERED: "1" | |
jobs: | |
create_release_pr: | |
if: "${{ github.actor == 'playpauseandstop' }}" | |
name: "Create Release PR" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v4.1.7" | |
with: | |
ref: "main" | |
- name: "Fetch git tags" | |
run: | | |
set -euo pipefail | |
git fetch --depth=1 origin +refs/tags/*:refs/tags/* || : | |
git fetch --prune --unshallow | |
- uses: "./.github/actions/install_badabump" | |
- id: "badabump" | |
name: "Run badabump" | |
run: "badabump --ci ${{ github.event.inputs.args }}" | |
- id: "token" | |
uses: "tibdex/github-app-token@v2.1.0" | |
with: | |
app_id: "${{ secrets.BADABUMP_APP_ID }}" | |
private_key: "${{ secrets.BADABUMP_APP_PRIVATE_KEY }}" | |
- name: "Create pull request with changed files" | |
uses: "peter-evans/create-pull-request@v6.1.0" | |
with: | |
token: "${{ steps.token.outputs.token }}" | |
commit-message: | | |
${{ steps.badabump.outputs.pr_title }} | |
${{ steps.badabump.outputs.changelog }} | |
branch: "${{ steps.badabump.outputs.pr_branch }}" | |
delete-branch: true | |
title: "${{ steps.badabump.outputs.pr_title }}" | |
body: "${{ steps.badabump.outputs.changelog }}" | |
labels: "chore" | |
reviewers: "playpauseandstop" | |
assignees: "playpauseandstop" |