Skip to content

Commit 1f1b2bc

Browse files
committed
step
1 parent 6170188 commit 1f1b2bc

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/format_check.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,18 @@ jobs:
4747
libraries/extras/**
4848
libraries/ea_malloc/**
4949
write_output_files: true
50-
base_sha: ${{ steps.first-commit.outputs.sha }}
5150

5251
- name: List changed files
53-
if: steps.changed-files.outputs.any_changed == 'true'
52+
id: changed-files-list
53+
if: steps.changed-files.outputs.any_changed == 'true' and github.event_name != 'workflow_dispatch'
54+
outputs:
55+
all_changed_files: ${{ steps.changed-files.outputs.all_changed_files }}
5456
run: cat .github/outputs/all_changed_files.txt
5557

5658
- name: Run clang-format check
57-
if: steps.changed-files.outputs.any_changed == 'true'
59+
if: steps.changed-files.outputs.any_changed == 'true' or github.event_name == 'workflow_dispatch'
5860
uses: pillo79/clang-format-action@05f671e71f0758aba4d3c9dbb0ee81bc5f0137c6
5961
with:
6062
clang-format-version: '19'
61-
check-files-from: .github/outputs/all_changed_files.txt
63+
check-files-from: ${{ steps.changed-files-list.outputs.all_changed_files }}
64+
check-path: ${{ github.event_name == 'workflow_dispatch' && '.' }}

0 commit comments

Comments
 (0)