Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion action/release-pr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ inputs:
tag:
description: Release tag
required: true
target-branch:
description: Branch the release pull request targets
required: false
default: main
version:
description: Release version
required: true
Expand All @@ -36,6 +40,7 @@ runs:
PACKAGE_PATH: ${{ inputs.package-path }}
PR_BODY: ${{ inputs.pr-body }}
TAG: ${{ inputs.tag }}
TARGET_BRANCH: ${{ inputs.target-branch }}
VERSION: ${{ inputs.version }}
run: |
BRANCH="release-$PACKAGE_NAME-$VERSION-$GITHUB_RUN_ID"
Expand All @@ -49,7 +54,7 @@ runs:
git push -u "https://x-access-token:$GH_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD
gh pr create \
--assignee "$GITHUB_ACTOR" \
--base main \
--base "$TARGET_BRANCH" \
--head "$BRANCH" \
--title "release: $TAG" \
--body "$PR_BODY"