Skip to content

Commit

Permalink
Merge pull request #308 from goblint/indent-workflow
Browse files Browse the repository at this point in the history
check indentation of changes on GitHub
  • Loading branch information
vogler committed Jul 29, 2021
2 parents c40a27a + df2d401 commit a4efec0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/indentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: indentation

on: [ push, pull_request]

jobs:
indentation:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install ocp-indent
run: sudo apt install ocp-indent

- name: Run pre-commit hook on changes since last push
run: git reset --soft ${{ github.event.before }} && ./scripts/hooks/pre-commit

0 comments on commit a4efec0

Please sign in to comment.