Skip to content

ci: add schedule&workflow_dispatch triggers #4087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
pull_request:
types: [opened, synchronize]

workflow_dispatch:

# to execute once a day (more info see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule )
schedule:
- cron: '0 0 * * *'

jobs:
build:
strategy:
Expand Down Expand Up @@ -47,7 +53,7 @@ jobs:
run: yarn install --ignore-engines --frozen-lockfile

- name: Check format
run: yarn format
run: yarn format || (yarn format-fix; git diff --exit-code)

- name: Lint
run: yarn lint
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"docs-preview": "vitepress preview docs",
"lint": "eslint . --ext .js,.ts",
"lint-fix": "eslint . --ext .js,.ts --fix",
"format": "prettier **/*.{ts,js,json,yml,md} -l",
"format": "prettier **/*.{ts,js,json,yml,md} --check",
"format-fix": "prettier **/*.{ts,js,json,yml,md} --write",
"publish": "lerna publish --conventional-commits",
"reinstall": "yarn clean && yarn install",
Expand Down