Skip to content

Commit

Permalink
only schedule run on main
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrofelder committed Nov 9, 2023
1 parent 14c8781 commit a4e71ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: tests

on:
on:
push:
pull_request:
workflow_dispatch: # for occasional debugging
schedule:
# Every Sunday at 3 AM
- cron: "0 3 * * 0"
- cron: "0 3 * * 0"

jobs:
linting:
# scheduled workflows should not run on forks
if: (${{ github.event_name == 'schedule' }} && github.repository_owner == 'neuroinformatics-unit') || (${{ github.event_name != 'schedule' }})
if: (${{ github.event_name == 'schedule' }} && ${{ github.repository_owner == 'neuroinformatics-unit' }} && ${{ github.ref == 'refs/heads/main' }}) || (${{ github.event_name != 'schedule' }})
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/lint@v1
Expand Down

0 comments on commit a4e71ed

Please sign in to comment.