Skip to content

Commit 962e945

Browse files
committed
doooo
1 parent 1ae731c commit 962e945

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

.github/workflows/format_check.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ on:
2222
default: 'warning'
2323

2424
jobs:
25-
filter-format:
25+
verify-format:
2626
runs-on: ubuntu-latest
27-
outputs:
28-
any_changed: ${{ steps.changed-files.outputs.any_changed }}
2927
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v4
30+
with:
31+
submodules: false
32+
persist-credentials: false
33+
clean: false # preserve the files created by the previous job
3034
- name: Get changed source files that need format check
3135
id: changed-files
3236
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
@@ -42,24 +46,11 @@ jobs:
4246
libraries/extras/**
4347
libraries/ea_malloc/**
4448
write_output_files: true
45-
- name: List of changed files
49+
- name: List changed files
4650
if: steps.changed-files.outputs.any_changed == 'true'
4751
run: cat .github/outputs/all_changed_files.txt
48-
49-
verify-format:
50-
runs-on: ubuntu-latest
51-
needs:
52-
- filter-format
53-
if: needs.filter-format.outputs.any_changed
54-
steps:
55-
- name: Checkout code
56-
uses: actions/checkout@v4
57-
with:
58-
submodules: false
59-
persist-credentials: false
60-
clean: false # preserve the files created by the previous job
61-
6252
- name: Run clang-format check
53+
if: steps.changed-files.outputs.any_changed == 'true'
6354
uses: pillo79/clang-format-action@main
6455
with:
6556
clang-format-version: '19'

0 commit comments

Comments
 (0)