summaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
blob: 209248def6f66246e547c531f785d48641e77bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Linting
on:
  pull_request:

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: File Changes
      id: file_changes
      uses: trilom/file-changes-action@v1.2.3

    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: '3.x'

    - name: run python based linter
      run: python .github/vyos-linter.py '${{ steps.file_changes.outputs.files_modified }}'

    env:
      GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}