Stop double-running "check formatting" action (#2482)
also get some sneaky reformatting of the "check formatting" action in hehe
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user