45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: main
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: main
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.x"
|
|
|
|
- run: pip install pre-commit-mirror-maker
|
|
|
|
- name: set git config
|
|
run: |
|
|
git config user.name 'Github Actions'
|
|
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
|
|
|
- run: >
|
|
pre-commit-mirror
|
|
--language python
|
|
--package-name ruff
|
|
--entry ruff
|
|
--id ruff
|
|
--types python
|
|
--description "Run `ruff` for extremely fast Python linting" .
|
|
|
|
# Intended for removal November 2022 (1 month after deprecation)
|
|
- run: >
|
|
pre-commit-mirror
|
|
--language python
|
|
--package-name ruff
|
|
--entry ruff
|
|
--id lint
|
|
--types python
|
|
--description "Deprecated: use hook id `ruff` instead. Planned removal 2022-11-30" .
|
|
|
|
- run: git push origin HEAD:refs/heads/main --tags
|