Use base ref branch for pylint

pull/1663/head
Feist Josselin 2 years ago
parent a58fa3df5b
commit d42a74874d
  1. 7
      .github/workflows/pylint.yml

@ -9,9 +9,6 @@ defaults:
on:
pull_request:
branches: [master, dev]
schedule:
# run CI every day even if no PRs/merges occur
- cron: '0 12 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@ -45,7 +42,9 @@ jobs:
env:
# Run linters only on new files for pylint to speed up the CI
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
# Compare against the base branch
# This is only accessible on PR
DEFAULT_BRANCH: ${{ github.base_ref }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Run only pylint
VALIDATE_PYTHON: true

Loading…
Cancel
Save