From b53137d1db0bdd937dfb72bae2bb11513b582e37 Mon Sep 17 00:00:00 2001 From: pajlada Date: Sat, 27 Feb 2021 15:37:51 +0100 Subject: [PATCH] Stop double-running "check formatting" action (#2482) also get some sneaky reformatting of the "check formatting" action in hehe --- .github/workflows/check-formatting.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check-formatting.yml b/.github/workflows/check-formatting.yml index 8245627d..e7c4352c 100644 --- a/.github/workflows/check-formatting.yml +++ b/.github/workflows/check-formatting.yml @@ -1,26 +1,33 @@ +--- name: Check formatting on: push: + branches: + - master paths-ignore: - 'docs/**' - '*.md' pull_request: + paths-ignore: + - 'docs/**' + - '*.md' jobs: check: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2.3.4 - - name: apt-get update - run: sudo apt-get update + - uses: actions/checkout@v2.3.4 - - name: Install clang-format - run: sudo apt-get -y install clang-format dos2unix + - name: apt-get update + run: sudo apt-get update - - name: Check formatting - run: ./tools/check-format.sh + - name: Install clang-format + run: sudo apt-get -y install clang-format dos2unix - - name: Check line-endings - run: ./tools/check-line-endings.sh + - name: Check formatting + run: ./tools/check-format.sh + + - name: Check line-endings + run: ./tools/check-line-endings.sh