Skip to content

Create Release PR

Create Release PR #34

name: "Create Release PR"
on:
workflow_dispatch:
inputs:
release_version:
description: "next release version"
required: true
env:
GIT_AUTHOR_NAME: mackerelbot
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: mackerelbot
GIT_COMMITTER_EMAIL: [email protected]
jobs:
create:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mackerelio/mackerel-create-release-pull-request-action@main
id: start
with:
github_token: ${{ secrets.MACKERELBOT_GITHUB_TOKEN }}
next_version: ${{ github.event.inputs.release_version }}
package_name: mkr
- run: |
CURRENT=${{ steps.start.outputs.currentVersion }}
NEXT=${{ steps.start.outputs.nextVersion }}
mv packaging/mkr_$CURRENT.orig.tar.gz packaging/mkr_$NEXT.orig.tar.gz
- uses: mackerelio/mackerel-create-release-pull-request-action@main
with:
github_token: ${{ secrets.MACKERELBOT_GITHUB_TOKEN }}
finished: "true"
package_name: mkr
next_version: ${{ steps.start.outputs.nextVersion }}
branch_name: ${{ steps.start.outputs.branchName }}
pull_request_infos: ${{ steps.start.outputs.pullRequestInfos }}