From eb83395cc36bf3250e39f9544026b1fa76630bd1 Mon Sep 17 00:00:00 2001 From: rusdacent <57439765+rusdacent@users.noreply.github.com> Date: Fri, 6 Aug 2021 02:33:15 +0300 Subject: [PATCH] Remove action "upload-artifacts" from build workflow (#626) * rm upload artifacts to GitHub * Skip lint_c if no source files were modified Co-authored-by: Aleksandr Kutuzov --- .github/workflows/build.yml | 8 -------- .github/workflows/lint_c.yml | 9 ++++++++- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5bf231fe..443d869f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -157,14 +157,6 @@ jobs: >> artifacts/flipper-z-${TARGET}-full-${SUFFIX}.bin done - - name: 'Publish artifacts' - uses: actions/upload-artifact@v2 - with: - name: artifacts - path: artifacts/* - if-no-files-found: error - retention-days: 7 - - name: 'Upload artifacts to update server' uses: burnett01/rsync-deployments@4.1 with: diff --git a/.github/workflows/lint_c.yml b/.github/workflows/lint_c.yml index f4c0ce5a..571e88c4 100644 --- a/.github/workflows/lint_c.yml +++ b/.github/workflows/lint_c.yml @@ -1,6 +1,13 @@ name: 'Lint C/C++ with clang-format' -on: push +on: + push: + paths: + - '**.h' + - '**.c' + - '**.hpp' + - '**.cpp' + pull_request: env: TARGETS: f6