Add pre-commit on schedule call
@@ -69,6 +69,11 @@ jobs:
exit 1
env:
HEAD_REF: ${{ github.event.pull_request.head.ref }}
+ - id: pre_commit_schedule
+ name: Run pre-commit in schedule
+ if: github.event_name == 'schedule'
+ run: |
+ pre-commit run --all-files --show-diff-on-failure --color=always
test:
strategy:
@@ -91,7 +96,7 @@ jobs:
examples:
runs-on: ubuntu-latest
- if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')
+ if: (github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) || github.event_name == 'schedule'
steps:
- uses: actions/checkout@v3
- name: Install Go
