Skip to content

Create Release PR

Create Release PR #50

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: shogo82148/actions-setup-perl@v1
with:
perl-version: "5.34"
- 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: mackerel-agent-plugins
version_go_file_path: mackerel-plugin.go
- run: |
CURRENT=${{ steps.start.outputs.currentVersion }}
NEXT=${{ steps.start.outputs.nextVersion }}
mv packaging/mackerel-agent-plugins_$CURRENT.orig.tar.gz packaging/mackerel-agent-plugins_$NEXT.orig.tar.gz
- uses: mackerelio/mackerel-create-release-pull-request-action@main
with:
github_token: ${{ secrets.MACKERELBOT_GITHUB_TOKEN }}
finished: "true"
package_name: mackerel-agent-plugins
next_version: ${{ steps.start.outputs.nextVersion }}
branch_name: ${{ steps.start.outputs.branchName }}
pull_request_infos: ${{ steps.start.outputs.pullRequestInfos }}