Stop double-running "check formatting" action (#2482)

also get some sneaky reformatting of the "check formatting" action in hehe
This commit is contained in:
pajlada
2021-02-27 15:37:51 +01:00
committed by GitHub
parent 798384c931
commit b53137d1db
+16 -9
View File
@@ -1,26 +1,33 @@
---
name: Check formatting name: Check formatting
on: on:
push: push:
branches:
- master
paths-ignore: paths-ignore:
- 'docs/**' - 'docs/**'
- '*.md' - '*.md'
pull_request: pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
jobs: jobs:
check: check:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2.3.4
- name: apt-get update
run: sudo apt-get update
- name: Install clang-format - name: apt-get update
run: sudo apt-get -y install clang-format dos2unix run: sudo apt-get update
- name: Check formatting - name: Install clang-format
run: ./tools/check-format.sh run: sudo apt-get -y install clang-format dos2unix
- name: Check line-endings - name: Check formatting
run: ./tools/check-line-endings.sh run: ./tools/check-format.sh
- name: Check line-endings
run: ./tools/check-line-endings.sh