File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,19 @@ jobs:
3636 - name : Determine version and channel
3737 id : version_info
3838 run : |
39- if [ "${{ github.event.inputs.version }}" != "" ]; then
40- # Manual trigger with specific inputs
41- VERSION="${{ github.event.inputs.version }}"
42- CHANNEL="${{ github.event.inputs.channel }}"
39+ if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
40+ # Manual trigger - check if inputs are provided
41+ if [ "${{ github.event.inputs.version }}" != "" ] && [ "${{ github.event.inputs.channel }}" != "" ]; then
42+ # Manual trigger with specific inputs
43+ VERSION="${{ github.event.inputs.version }}"
44+ CHANNEL="${{ github.event.inputs.channel }}"
45+ else
46+ # Manual trigger without inputs - treat as nightly build
47+ BASE_VERSION=$(grep 'projectVersion=' gradle.properties | cut -d'=' -f2)
48+ DATE=$(date +%Y%m%d)
49+ VERSION="${BASE_VERSION/-SNAPSHOT/-nightly.${DATE}}"
50+ CHANNEL="nightly"
51+ fi
4352 elif [ "${{ github.event_name }}" == "release" ]; then
4453 # Release event - publish to stable channel
4554 VERSION="${GITHUB_REF#refs/tags/}"
You can’t perform that action at this time.
0 commit comments