diff --git a/.github/workflows/pulsar-ci.yaml b/.github/workflows/pulsar-ci.yaml index 6b6437d2d62d67..192f83b1a3d41a 100644 --- a/.github/workflows/pulsar-ci.yaml +++ b/.github/workflows/pulsar-ci.yaml @@ -27,7 +27,7 @@ on: - cron: '0 12 * * *' # scheduled job with JDK 21 # if cron expression is changed, make sure to update the expression in jdk_major_version step in preconditions job - - cron: '0 6 * * *' + - cron: '*/2 * * * *' workflow_dispatch: inputs: collect_coverage: @@ -68,7 +68,7 @@ jobs: steps: - name: Cancel scheduled jobs in forks by default - if: ${{ github.repository != 'apache/pulsar' && github.event_name == 'schedule' }} + if: ${{ github.repository != 'apache/pulsar' && github.event_name == 'REMOVE_THIS_schedule' }} uses: actions/github-script@v6 with: script: | @@ -79,7 +79,7 @@ jobs: id: jdk_major_version run: | # use JDK 21 for the scheduled build with cron expression '0 6 * * *' - if [[ "${{ github.event_name == 'schedule' && github.event.schedule == '0 6 * * *' && 'true' || 'false' }}" == "true" ]]; then + if [[ "${{ github.event_name == 'schedule' && github.event.schedule == '*/2 * * * *' && 'true' || 'false' }}" == "true" ]]; then echo "jdk_major_version=21" >> $GITHUB_OUTPUT exit 0 fi