Skip to content

Commit

Permalink
CI(clang-format): Upload artifacts of changed files from git ls-files…
Browse files Browse the repository at this point in the history
… output after message of other files
  • Loading branch information
echoix committed Mar 6, 2024
1 parent 927c82d commit 5334446
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/clang-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,7 @@ jobs:
fail_on_error: true
filter_mode: file
cleanup: false
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: always()
with:
name: my-artifact
path: |
.clang-format
${{ steps.git-changed-files.outputs.CHANGED_FILES }}

- name: Explain that more files need to be fixed
if: ${{ steps.verify-changed-files.outputs.files_changed == 'true' }}
run: |
Expand All @@ -95,3 +89,10 @@ jobs:
echo 'All the files above still need to be formatted, even without suggestions.'
} >> "$GITHUB_STEP_SUMMARY"
exit 1
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: always()
with:
name: my-artifact
path: |
.clang-format
${{ steps.git-changed-files.outputs.CHANGED_FILES }}

0 comments on commit 5334446

Please sign in to comment.