Skip to content

Commit d7055c2

Browse files
committed
chore(ci): format nightly using the date as suffix
Signed-off-by: Ruben Romero Montes <[email protected]>
1 parent 1e38dac commit d7055c2

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/publish-marketplace.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ on:
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)

0 commit comments

Comments
 (0)