diff --git a/.github/workflows/ci_crontests.yml b/.github/workflows/ci_crontests.yml index 209c3f9d10..1b48768c1c 100644 --- a/.github/workflows/ci_crontests.yml +++ b/.github/workflows/ci_crontests.yml @@ -4,7 +4,7 @@ on: push: # Run this job on release tags, but not on pushes to the main branch tags: - - '*' + - '*' schedule: # run every Friday at 22:00 UTC - cron: '0 22 * * 5' @@ -17,7 +17,8 @@ jobs: tests: name: ${{ matrix.name }} runs-on: ${{ matrix.os }} - if: github.repository == 'astropy/astroquery' + # To enable this cron job on forks, comment out the following line + if: github.repository == 'astropy/astroquery' || github.event_name != 'schedule' strategy: fail-fast: false matrix: diff --git a/.github/workflows/ci_devtests.yml b/.github/workflows/ci_devtests.yml index 840425e718..1359d5748e 100644 --- a/.github/workflows/ci_devtests.yml +++ b/.github/workflows/ci_devtests.yml @@ -26,6 +26,8 @@ jobs: tests: name: ${{ matrix.name }} runs-on: ${{ matrix.os }} + # To enable this cron job on forks, comment out the following line + if: github.repository == 'astropy/astroquery' || github.event_name != 'schedule' strategy: fail-fast: true matrix: diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 414dae222f..352ceb9be7 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -26,6 +26,8 @@ jobs: tests: name: ${{ matrix.name }} runs-on: ${{ matrix.os }} + # To enable this cron job on forks, comment out the following line + if: github.repository == 'astropy/astroquery' || github.event_name != 'schedule' strategy: fail-fast: false matrix: @@ -83,6 +85,8 @@ jobs: egg_info: name: egg_info with Python 3.9 runs-on: ubuntu-latest + # To enable this cron job on forks, comment out the following line + if: github.repository == 'astropy/astroquery' || github.event_name != 'schedule' steps: - name: Checkout code uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ab7abe24da..b790b52caf 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -20,6 +20,7 @@ jobs: name: Analyze runs-on: ubuntu-latest + if: github.repository == 'astropy/astroquery' strategy: fail-fast: false matrix: