Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
chore: test passing branch name as argument
  • Loading branch information
alucardzom committed Jul 4, 2025
commit 092bb61e801f3f7b332aef5add514f42f47eb308
10 changes: 7 additions & 3 deletions .github/scripts/create-platform-release-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ if [[ -z $NEW_VERSION_NUMBER && $PLATFORM == "mobile" ]]; then
exit 1
fi


if [[ -z $RELEASE_BRANCH_NAMING ]]; then
echo "Error: No release branch naming specified."
exit 1
fi


# Helper Functions
Expand Down Expand Up @@ -72,10 +75,11 @@ get_release_branch_name() {
if [ "$TEST_ONLY" == "true" ]; then
echo "release-testing/${new_version}"
return 0
else
echo "${new_version}"
fi

# Use consistent release branch naming for all platforms
echo "$RELEASE_BRANCH_NAMING${new_version}"

# Different release branch naming for different platforms
# if [[ "$platform" == "mobile" ]]; then
# echo "release/${new_version}"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ on:
type: string
description: 'The version of github-tools to use. Defaults to main.'
default: 'main'
release-branch-naming:
required: false
type: string
description: 'The naming convention for the release branch.'
default: 'release/'
secrets:
github-token:
required: true
Expand Down Expand Up @@ -98,6 +103,7 @@ jobs:
echo "Semver Version: ${{ inputs.semver-version }}"
echo "Previous Version Tag: ${{ inputs.previous-version-tag }}"
echo "Test Only Mode: ${{ inputs.test-only }}"
echo "Release Branch Naming: ${{ inputs.release-branch-naming }}"
if [[ "${{ inputs.platform }}" == "mobile" ]]; then
echo "Mobile Build Version: ${{ inputs.mobile-build-version }}"
fi
Expand All @@ -119,6 +125,7 @@ jobs:
BASE_BRANCH: ${{ inputs.base-branch }}
GITHUB_REPOSITORY_URL: '${{ github.server_url }}/${{ github.repository }}'
TEST_ONLY: ${{ inputs.test-only }}
RELEASE_BRANCH_NAMING: ${{ inputs.release-branch-naming }}
GOOGLE_DOCUMENT_ID: ${{ inputs.release-sheet-google-document-id }}
GOOGLE_APPLICATION_CREDENTIALS_BASE64: ${{ secrets.google-application-creds-base64 }}
NEW_VERSION: ${{ inputs.semver-version }}
Expand Down
Loading