File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 33 workflow_dispatch :
44 inputs :
55 version :
6- description : ' Version to publish (e.g., 1.1.0)'
7- required : true
6+ description : ' Version to publish (e.g., 1.1.0) - leave empty for automatic nightly build '
7+ required : false
88 type : string
99 channel :
10- description : ' Marketplace channel (stable, nightly)'
11- required : true
10+ description : ' Marketplace channel (stable, nightly) - leave empty for automatic detection '
11+ required : false
1212 type : string
13- default : ' stable'
1413 release :
1514 types : [published]
1615 schedule :
@@ -48,10 +47,10 @@ jobs:
4847 elif [ "${{ github.event_name }}" == "schedule" ]; then
4948 # Scheduled run - check if we should publish nightly
5049 if [ "${{ steps.changes_check.outputs.has_changes }}" == "true" ]; then
51- # Get current version from gradle.properties and append timestamp
50+ # Get current version from gradle.properties and append date (like 1.1.0-nightly.20240901)
5251 BASE_VERSION=$(grep 'projectVersion=' gradle.properties | cut -d'=' -f2)
53- TIMESTAMP =$(date +%Y%m%d-%H%M%S )
54- VERSION="${BASE_VERSION}- nightly.${TIMESTAMP }"
52+ DATE =$(date +%Y%m%d)
53+ VERSION="${BASE_VERSION/-SNAPSHOT/- nightly.${DATE} }"
5554 CHANNEL="nightly"
5655 else
5756 # No changes, set dummy values (workflow will exit early)
You can’t perform that action at this time.
0 commit comments