2024-03-04 03:54:13 +00:00
|
|
|
name: "Release Manager: release RC when ready for review"
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [ready_for_review]
|
|
|
|
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
issues: write
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
2024-07-09 07:08:49 +00:00
|
|
|
head: ${{ steps.get_pr.outputs.head }}
|
|
|
|
base: ${{ steps.get_pr.outputs.base }}
|
2024-03-04 03:54:13 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
# PR情報を取得
|
|
|
|
- name: Get PR
|
|
|
|
run: |
|
2024-07-09 07:08:49 +00:00
|
|
|
pr_json=$(gh pr view "$PR_NUMBER" --json isDraft,headRefName,baseRefName)
|
|
|
|
echo "head=$(echo $pr_json | jq -r '.headRefName')" >> $GITHUB_OUTPUT
|
|
|
|
echo "base=$(echo $pr_json | jq -r '.baseRefName')" >> $GITHUB_OUTPUT
|
2024-03-04 03:54:13 +00:00
|
|
|
id: get_pr
|
2024-05-27 15:02:22 +00:00
|
|
|
env:
|
|
|
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
2024-03-04 03:54:13 +00:00
|
|
|
release:
|
2024-07-09 07:08:49 +00:00
|
|
|
uses: misskey-dev/release-manager-actions/.github/workflows/create-prerelease.yml@v2
|
2024-03-04 03:54:13 +00:00
|
|
|
needs: check
|
2024-07-09 07:08:49 +00:00
|
|
|
if: needs.check.outputs.head == github.event.repository.default_branch && needs.check.outputs.base == vars.STABLE_BRANCH
|
2024-03-04 03:54:13 +00:00
|
|
|
with:
|
|
|
|
pr_number: ${{ github.event.pull_request.number }}
|
2024-07-09 07:08:49 +00:00
|
|
|
user: 'github-actions[bot]'
|
2024-03-04 03:54:13 +00:00
|
|
|
package_jsons_to_rewrite: ${{ vars.PACKAGE_JSONS_TO_REWRITE }}
|
|
|
|
use_external_app_to_release: ${{ vars.USE_RELEASE_APP == 'true' }}
|
2024-05-07 05:38:43 +00:00
|
|
|
indent: ${{ vars.INDENT }}
|
2024-08-09 03:05:28 +00:00
|
|
|
draft_prerelease_channel: alpha
|
|
|
|
ready_start_prerelease_channel: beta
|
2024-11-22 03:11:45 +00:00
|
|
|
reset_number_on_channel_change: true
|
2024-03-04 03:54:13 +00:00
|
|
|
secrets:
|
|
|
|
RELEASE_APP_ID: ${{ secrets.RELEASE_APP_ID }}
|
|
|
|
RELEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
|