Skip to content

Commit 0b11785

Browse files
committed
Run cron jobs only for scheduled main and for tags
1 parent 4160901 commit 0b11785

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/ci_crontests.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ name: CI-crontests
22

33
on:
44
push:
5-
branches:
6-
- main
5+
# Run this job on release tags, but not on pushes to the main branch
76
tags:
87
- '*'
9-
pull_request:
10-
branches:
11-
- main
128
schedule:
139
# run every Monday at 5am UTC
1410
- cron: '0 5 * * 1'
@@ -17,7 +13,7 @@ jobs:
1713
tests:
1814
name: ${{ matrix.name }}
1915
runs-on: ${{ matrix.os }}
20-
# if: github.event_name == 'schedule' && github.repository == 'astropy/astroquery'
16+
if: github.event_name == 'schedule' && github.repository == 'astropy/astroquery'
2117
strategy:
2218
fail-fast: true
2319
matrix:

0 commit comments

Comments
 (0)