Skip to content

Commit

Permalink
weekly and only notify on cron or manual run (#144)
Browse files Browse the repository at this point in the history
* weekly and only notify on cron or manual run

* precommit
  • Loading branch information
nabobalis authored May 13, 2024
1 parent 368a918 commit 19f3669
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
# │ │ ┌───────── day of the month (1 - 31)
# │ │ │ ┌───────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT)
- cron: '0 7 * * *' # Every day at 07:00 UTC
- cron: '0 7 * * 1' # Every Monday at 07:00 UTC

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
pypi_token: ${{ secrets.pypi_token }}

notify:
if: always() && github.event_name != 'pull_request' && github.ref_name == 'main'
if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
needs: [publish, cron]
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
# This should be before any formatting hooks like isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.3"
rev: "v0.4.4"
hooks:
- id: ruff
args: ["--fix"]
Expand Down Expand Up @@ -32,13 +32,13 @@ repos:
args: [ "--write-changes" ]
# Run mypy type validation
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.9.0'
rev: 'v1.10.0'
hooks:
- id: mypy
additional_dependencies: [types-setuptools]
# Python code formatting
- repo: https://github.com/psf/black
rev: 24.4.0
rev: 24.4.2
hooks:
- id: black
# Rust code formatting
Expand Down

0 comments on commit 19f3669

Please sign in to comment.