Skip to content

Commit 4efe771

Browse files
committed
fix: trigger manual wf missing build
Signed-off-by: Ruben Romero Montes <[email protected]>
1 parent 5c1efc2 commit 4efe771

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish-marketplace.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,18 @@ jobs:
7474
echo "CHANNEL=$CHANNEL" >> $GITHUB_OUTPUT
7575
echo "Publishing version $VERSION to $CHANNEL channel"
7676
77-
- name: Check for changes since last nightly
77+
- name: Check for changes since last nightly
7878
if: github.event_name == 'schedule'
7979
id: changes_check
8080
run: |
8181
# Get the date from yesterday
8282
YESTERDAY=$(date -d 'yesterday' +%Y-%m-%d)
8383
echo "Checking for changes since: $YESTERDAY"
84-
84+
8585
# Get the last nightly build commit hash (you might want to store this in a file or use a tag)
8686
# For now, we'll check if there are any commits in the last 24 hours
8787
COMMIT_COUNT=$(git log --since="$YESTERDAY" --oneline | wc -l)
88-
88+
8989
if [ "$COMMIT_COUNT" -gt 0 ]; then
9090
echo "✅ Found $COMMIT_COUNT commits since $YESTERDAY - proceeding with nightly build"
9191
echo "has_changes=true" >> $GITHUB_OUTPUT
@@ -95,7 +95,7 @@ jobs:
9595
fi
9696

9797
- name: Build nightly version
98-
if: github.event_name == 'schedule' && steps.changes_check.outputs.has_changes == 'true'
98+
if: (github.event_name == 'schedule' && steps.changes_check.outputs.has_changes == 'true') || github.event_name == 'workflow_dispatch'
9999
run: |
100100
echo "Building nightly version from source..."
101101
./gradlew buildPlugin -Pgpr.username=${{ github.actor }} -Pgpr.token=${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)