Skip to content
Draft
Show file tree
Hide file tree
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
22 changes: 20 additions & 2 deletions shared-overwrite/.github/workflows/mt-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ on:
type: boolean
default: false
required: false
skipStoreInternalDraft:
description: 'Skip internal draft store release'
type: boolean
default: false
required: false
allowStoreInternalDraft:
description: 'Allow internal draft store release'
type: boolean
default: false
required: false
allowStoreInternal:
description: 'Allow internal store release'
type: boolean
Expand Down Expand Up @@ -152,9 +162,13 @@ jobs:
app-android/build/outputs/bundle

- name: MT allow store releases
if: ${{ github.event.inputs.allowStoreInternal == 'true' || github.event.inputs.allowStoreAlpha == 'true' || github.event.inputs.allowStoreBetaPrivate == 'true' || github.event.inputs.allowStoreProduction == 'true' }}
if: ${{ github.event.inputs.allowStoreInternalDraft == 'true' || github.event.inputs.allowStoreInternal == 'true' || github.event.inputs.allowStoreAlpha == 'true' || github.event.inputs.allowStoreBetaPrivate == 'true' || github.event.inputs.allowStoreProduction == 'true' }}
run: |
mkdir -p config/store
if [[ "${{ github.event.inputs.allowStoreInternalDraft }}" == "true" ]]; then
echo "Allowing internal draft store release..."
touch config/store/internal
fi
if [[ "${{ github.event.inputs.allowStoreInternal }}" == "true" ]]; then
echo "Allowing internal store release..."
touch config/store/internal
Expand All @@ -173,7 +187,7 @@ jobs:
fi

- name: MT skip store releases
if: ${{ github.event.inputs.skipStoreAll == 'true' || github.event.inputs.skipStoreProduction == 'true' || github.event.inputs.skipStoreBetaPrivate == 'true' || github.event.inputs.skipStoreAlpha == 'true' || github.event.inputs.skipStoreInternal == 'true' }}
if: ${{ github.event.inputs.skipStoreAll == 'true' || github.event.inputs.skipStoreProduction == 'true' || github.event.inputs.skipStoreBetaPrivate == 'true' || github.event.inputs.skipStoreAlpha == 'true' || github.event.inputs.skipStoreInternal == 'true' || github.event.inputs.skipStoreInternalDraft == 'true' }}
run: |
if [[ "${{ github.event.inputs.skipStoreAll }}" == "true" ]]; then
echo "Skipping all store releases..."
Expand All @@ -198,6 +212,10 @@ jobs:
echo "Skipping internal store release..."
rm -f config/store/internal
fi
if [[ "${{ github.event.inputs.skipStoreInternalDraft }}" == "true" ]]; then
echo "Skipping internal draft store release..."
rm -f config/store/internal
fi
fi

- name: MT Publish release
Expand Down
Binary file added shared/.gradle/9.5.1/checksums/checksums.lock
Binary file not shown.
Binary file added shared/.gradle/9.5.1/checksums/md5-checksums.bin
Binary file not shown.
Binary file added shared/.gradle/9.5.1/checksums/sha1-checksums.bin
Binary file not shown.
Binary file added shared/.gradle/9.5.1/fileChanges/last-build.bin
Binary file not shown.
Binary file added shared/.gradle/9.5.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added shared/.gradle/9.5.1/fileHashes/fileHashes.lock
Binary file not shown.
Empty file.
Binary file not shown.
2 changes: 2 additions & 0 deletions shared/.gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Thu May 28 12:40:16 UTC 2026
gradle.version=9.5.1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added shared/.gradle/file-system.probe
Binary file not shown.
Empty file.
Binary file added shared/.gradle/workspace-id.txt
Binary file not shown.
Binary file added shared/.gradle/workspace-id.txt.lock
Binary file not shown.
8 changes: 6 additions & 2 deletions shared/app-android/publish_to_current_users.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,24 @@ fi

trackScriptName() {
case "$1" in
internal-draft) echo "internal_draft";;
beta-private) echo "private_beta";;
*) echo "$1";;
esac
}

TRACKS=(internal alpha beta-private production)
CURRENT_USER_TRACKS=()
if [[ -f "$CONFIG_PATH/store/internal" ]]; then
CURRENT_USER_TRACKS+=("internal-draft" "internal")
fi
TRACKS=(alpha beta-private production)
for track in "${TRACKS[@]}"; do
if [[ -f "$CONFIG_PATH/store/$track" ]]; then
CURRENT_USER_TRACKS+=("$track")
fi
done

if [[ ${#CURRENT_USER_TRACKS[@]} -eq 0 ]]; then # no internal, no alpha, no private beta, no production
if [[ ${#CURRENT_USER_TRACKS[@]} -eq 0 ]]; then # no internal-draft, no internal, no alpha, no private beta, no production
echo "> Push to Store NOT enabled... SKIP (no current users)";
exit 0 # success
fi
Expand Down
2 changes: 1 addition & 1 deletion shared/app-android/publish_to_internal_draft.sh
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot revert this change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified and reverted to the pre-change state (no diff from the previous state) in 2b5d6ef.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [[ "$GIT_PROJECT_NAME" == *"-gradle"* ]]; then # OLD REPO
fi

if [[ ! -f "$CONFIG_PATH/store/internal" ]]; then
echo "> Publish to internal NOT authorized!";
echo "> Publish to internal draft NOT authorized!";
exit 1; # error
fi

Expand Down
Loading