From f6a2705a23a3dfe4a4db663bde1b218e62dfce14 Mon Sep 17 00:00:00 2001 From: Otto Date: Tue, 23 Nov 2021 11:53:29 +0100 Subject: [PATCH] Give steps a name --- .github/workflows/formatting.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index 2a24c10345..b99f281dfa 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -15,14 +15,17 @@ jobs: with: fetch-depth: 5 submodules: recursive - - run: | + - name: Update dependencies + run: | sudo apt-get update sudo apt-get -qq --no-install-recommends install git clang-11 - - run: | + - name: Run format-code on files that should be formatted + run: | ./build-scripts/format-code $(find . -type f -name '*.[ch][ch]' | sort | comm -23 - .not-formatted) git --no-pager diff exit $(git diff | wc -l) - - run: | + - name: Report diffs for files that should be formatted + run: | exitcode=0 for f in $(find . -type f -name 'Makefile.am'); do ./build-scripts/test-sources-sorted.py ${f} -- 2.47.2