Skip to content

Commit 82fa004

Browse files
committed
added detect file change
1 parent 68d3733 commit 82fa004

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/cont-bench.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,28 @@ permissions:
99
id-token: write
1010

1111
jobs:
12+
file-changes:
13+
name: Detect File Changes
14+
runs-on: 'ubuntu-latest'
15+
outputs:
16+
checkall: ${{ steps.changes.outputs.checkall }}
17+
steps:
18+
- name: Clone
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Detect Changes
24+
uses: dorny/paths-filter@v3
25+
id: changes
26+
with:
27+
filters: ".github/file-filter.yml"
28+
base: ${{ github.event.repository.default_branch || 'main' }}
29+
1230
self:
1331
name: "Continuous Benchmarking"
32+
needs: file-changes
33+
continue-on-error: true
1434
runs-on: ubuntu-latest
1535
steps:
1636
- name: Clone - PR
@@ -28,7 +48,7 @@ jobs:
2848
sudo chmod +x /usr/local/bin/yq
2949
yq --version
3050
31-
- name: Run Fortran Benchmark
51+
- name: Run Benchmark Cases
3252
run: |
3353
(cd pr && ./mfc.sh bench -o bench.yaml)
3454
find pr/ -maxdepth 1 -name "*.yaml" -exec sh -c 'yq eval -o=json "$1" > "${1%.yaml}.json"' _ {} \;

0 commit comments

Comments
 (0)