diff --git a/.github/workflows/api_doc.yml b/.github/workflows/api_doc.yml index 3a5897fb3f409..65d78cc3e7d98 100644 --- a/.github/workflows/api_doc.yml +++ b/.github/workflows/api_doc.yml @@ -6,6 +6,9 @@ on: push: branches: - "**" + schedule: + # Cron syntax: [minute hour day_of_the_month month day_of_the_week] + - cron: "0 2 * * 0,3" # Run every Sunday and Wednesday at 02:00 jobs: deploy: diff --git a/.github/workflows/build_farm.yml b/.github/workflows/build_farm.yml deleted file mode 100644 index c2ee451fe683e..0000000000000 --- a/.github/workflows/build_farm.yml +++ /dev/null @@ -1,35 +0,0 @@ -# https://help.github.com/en/articles/workflow-syntax-for-github-actions - -name: Trigger Build Farm - -on: - push: - branches: - - dart8/main - schedule: - # Run at 09:00 UTC (02:00 PDT) everyday - - cron: "0 9 * * *" - -jobs: - build_farm_on_push: - if: github.event_name == 'push' - name: Trigger Build Farm - runs-on: ubuntu-latest - steps: - - name: Send request to dartsim/dart-build-farm to build a commit - run: | - curl -X POST https://api.github.com/repos/dartsim/dart-build-farm/dispatches \ - -H 'Accept: application/vnd.github.everest-preview+json' \ - -u ${{ secrets.ACCESS_TOKEN }} \ - --data '{"event_type": "Build Commit", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'", "ref": "'"$GITHUB_REF"'" }}' - build_farm_on_schedule: - if: github.event_name == 'schedule' - name: Trigger Build Farm - runs-on: ubuntu-latest - steps: - - name: Send request to dartsim/dart-build-farm to build dart8/main - run: | - curl -X POST https://api.github.com/repos/dartsim/dart-build-farm/dispatches \ - -H 'Accept: application/vnd.github.everest-preview+json' \ - -u ${{ secrets.ACCESS_TOKEN }} \ - --data '{"event_type": "Build Commit", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'", "ref": "dart7/main" }}' diff --git a/.github/workflows/ci_macos.yml b/.github/workflows/ci_macos.yml index 03a0735b9e158..76b9ec91ba72c 100644 --- a/.github/workflows/ci_macos.yml +++ b/.github/workflows/ci_macos.yml @@ -6,6 +6,9 @@ on: push: branches: - "**" + schedule: + # Cron syntax: [minute hour day_of_the_month month day_of_the_week] + - cron: "0 2 * * 0,3" # Run every Sunday and Wednesday at 02:00 jobs: build: diff --git a/.github/workflows/ci_ubuntu.yml b/.github/workflows/ci_ubuntu.yml index 15cd36bf094ac..b0775017668ce 100644 --- a/.github/workflows/ci_ubuntu.yml +++ b/.github/workflows/ci_ubuntu.yml @@ -6,6 +6,9 @@ on: push: branches: - "**" + schedule: + # Cron syntax: [minute hour day_of_the_month month day_of_the_week] + - cron: "0 2 * * 0,3" # Run every Sunday and Wednesday at 02:00 jobs: build: diff --git a/.github/workflows/ci_windows.yml b/.github/workflows/ci_windows.yml index eecc9ae6e0dab..60ded4b388599 100644 --- a/.github/workflows/ci_windows.yml +++ b/.github/workflows/ci_windows.yml @@ -6,6 +6,9 @@ on: push: branches: - "**" + schedule: + # Cron syntax: [minute hour day_of_the_month month day_of_the_week] + - cron: "0 2 * * 0,3" # Run every Sunday and Wednesday at 02:00 jobs: build_2019: