-
Notifications
You must be signed in to change notification settings - Fork 32
39 lines (35 loc) · 1.28 KB
/
create-release-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: "Create Release PR"
on:
workflow_dispatch:
inputs:
release_version:
description: "next release version"
required: true
env:
GIT_AUTHOR_NAME: mackerelbot
GIT_AUTHOR_EMAIL: mackerelbot@users.noreply.github.com
GIT_COMMITTER_NAME: mackerelbot
GIT_COMMITTER_EMAIL: mackerelbot@users.noreply.github.com
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 }}