Skip to content

Commit 562b375

Browse files
committed
ci: add back conditional measure for only changed files
1 parent 2caf9d3 commit 562b375

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/cohesion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Swift Package Resolve
1818
run: swift package resolve
1919

20-
- uses: arthurpalves/coherent-swift@0.5.4.5
20+
- uses: arthurpalves/coherent-swift@0.5.4.6
2121
with:
2222
source: Sources
2323
minimum_threshold: 60

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,8 @@ runs:
4343
shell: bash
4444
run: |
4545
cd ${{ github.action_path }}
46-
swift run coherent-swift report -s coherent-swift.yml
46+
if [[ ${{ inputs.only_changes}} == 'true' ]]; then
47+
swift run coherent-swift report -d -s coherent-swift.yml
48+
else
49+
swift run coherent-swift report -s coherent-swift.yml
50+
fi

0 commit comments

Comments
 (0)