Run cron jobs only for scheduled main and for tags
@@ -2,13 +2,9 @@ name: CI-crontests
on:
push:
- branches:
- - main
+ # Run this job on release tags, but not on pushes to the main branch
tags:
- '*'
- pull_request:
- branches:
- - main
schedule:
# run every Monday at 5am UTC
- cron: '0 5 * * 1'
@@ -17,7 +13,7 @@ jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
-# if: github.event_name == 'schedule' && github.repository == 'astropy/astroquery'
+ if: github.event_name == 'schedule' && github.repository == 'astropy/astroquery'
strategy:
fail-fast: true
matrix:
