From edeb3dd114c4b2c5dde8e33887d66c157be8c3fb Mon Sep 17 00:00:00 2001 From: sapphi-red Date: Thu, 20 Aug 2026 12:05:40 +0900 Subject: [PATCH] feat: allow using `github.token` in release-pr action --- action/release-pr/action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action/release-pr/action.yml b/action/release-pr/action.yml index c8f3b77..7d3228d 100644 --- a/action/release-pr/action.yml +++ b/action/release-pr/action.yml @@ -4,9 +4,9 @@ description: Commit prepared release files and open a pull request inputs: app-slug: description: Slug of the GitHub App used to open the pull request - required: true + required: false token: - description: GitHub App token with contents and pull request write access + description: GitHub App token or github.token with contents and pull request write access required: true package-name: description: Name of the package to release @@ -39,6 +39,7 @@ runs: VERSION: ${{ inputs.version }} run: | BRANCH="release-$PACKAGE_NAME-$VERSION-$GITHUB_RUN_ID" + APP_SLUG="${APP_SLUG:-github-actions}" BOT_ID="$(gh api "/users/$APP_SLUG%5Bbot%5D" --jq .id)" git config user.name "$APP_SLUG[bot]" git config user.email "$BOT_ID+$APP_SLUG[bot]@users.noreply.github.com"