Skip to content

Commit

Permalink
Merge pull request #172 from sanogenetics/hotfix/ci-updates
Browse files Browse the repository at this point in the history
CI updates
  • Loading branch information
apriha authored Mar 12, 2024
2 parents 1d4bbd6 + 5e2ef47 commit cb39e37
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,22 @@ on:
schedule:
- cron: '37 4 * * 0'
push:
branches: '**'
branches:
- '**'
pull_request:
branches: '**'
branches:
- '**'

jobs:
enable-workflow:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' || (github.event_name == 'schedule' && github.repository == 'apriha/snps') }}
steps:
- name: Enable workflow based on preconditions
run: echo "Workflow enabled."

lint:
needs: [enable-workflow]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -31,6 +41,7 @@ jobs:
black --check --diff .
build-docs:
needs: [enable-workflow]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit cb39e37

Please sign in to comment.