File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
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 }}
You can’t perform that action at this time.
0 commit comments