Skip to content

Commit

Permalink
Run scheduled workflow selectively
Browse files Browse the repository at this point in the history
only on central repo (not forks)
  • Loading branch information
alessandrofelder committed Nov 10, 2023
1 parent 482773d commit f1f5a2e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
name: tests

on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch: # for occasional debugging
schedule:
# Every Sunday at 3 AM
- 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' }})
runs-on: ubuntu-latest
steps:
- uses: neuroinformatics-unit/actions/lint@v1
Expand Down

0 comments on commit f1f5a2e

Please sign in to comment.