Skip to content

Commit

Permalink
Added conditions to workflows to be skiped (#3616)
Browse files Browse the repository at this point in the history
Added conditions to workflows of value only to PyBaMM so they always be skipped in forks.
  • Loading branch information
jlauber18 authored Dec 14, 2023
1 parent a129e02 commit e29e75b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
if-no-files-found: error

publish_pypi:
if: github.event_name != 'schedule'
if: github.event_name != 'schedule' && github.repository_owner == 'pybamm-team'
name: Upload package to PyPI
needs: [build_wheels, build_windows_wheels, build_sdist]
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_reminder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:

jobs:
remind:
if: github.repository_owner == 'pybamm-team'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run_benchmarks_over_history.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
path: results

publish-results:
if: github.repository_owner == 'pybamm-team'
name: Push and publish results
needs: benchmarks
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run_periodic_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:

#M-series Mac Mini
build-apple-mseries:
if: github.repository_owner == 'pybamm-team'
needs: style
runs-on: [self-hosted, macOS, ARM64]
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/validation_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
build:
if: github.repository_owner == 'pybamm-team'
name: Dispatch to `pybamm-validation`
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/work_precision_sets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
benchmarks_on_release:
if: github.repository_owner == 'pybamm-team'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e29e75b

Please sign in to comment.