summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorrebortg <github@ghlr.de>2020-11-26 21:49:14 +0100
committerrebortg <github@ghlr.de>2020-11-26 21:49:14 +0100
commitba76cefc39e0b9b50dd8416e76f4d3e6f6ce8aff (patch)
tree56791f75f9c175e1cf8a60a03da36005ae9a6cd9 /.github/workflows
parent4bc9e94a7ad57ee6735533da59a808dc8caf3ba5 (diff)
downloadvyos-documentation-ba76cefc39e0b9b50dd8416e76f4d3e6f6ce8aff.tar.gz
vyos-documentation-ba76cefc39e0b9b50dd8416e76f4d3e6f6ce8aff.zip
add github actions
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 00000000..b6797ce0
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,32 @@
+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: Vale
+ uses: errata-ai/vale-action@v1.3.0
+ with:
+ files: '${{ steps.file_changes.outputs.files_modified }}'
+
+ - 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}}
+
+