Skip to content

Commit dfe8ebd

Browse files
authored
ci: pin SHAs, improve doc and rename workflow
1 parent 7e7cab3 commit dfe8ebd

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/codacy-variation-fallback.yml renamed to .github/workflows/bypass-codacy-variation.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,16 @@ jobs:
2222
bypass_check:
2323
runs-on: ubuntu-latest
2424
steps:
25-
26-
# Verify if there are changes on relevant files
27-
# relevant_files will be:
28-
# - 'true' when there is at least one file that will trigger the 'Codacy Coverage Variation' check
29-
# - will be false otherwise.
30-
- uses: dorny/paths-filter@v3
25+
26+
# Verifies which kind of files have changes.
27+
# 'has_code_changes' will be true if any java source file is modified.
28+
# 'has_non_coverable_changes' will be true if there is any Markdown, YAML file or any other kind of non coverable file.
29+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
3130
id: changes
3231
with:
3332
filters: |
3433
has_code_changes:
3534
- "src/main/**/*.java"
36-
# Excluded files from Codacy Coverage Variation
3735
has_non_coverable_changes:
3836
- "**/*.md"
3937
- "**/*.yml"
@@ -42,7 +40,7 @@ jobs:
4240
# Bypass the 'Codacy Coverage Variation' when there are no coverable files able to trigger it.
4341
- name: Create Success Check for Variation
4442
if: steps.changes.outputs.has_code_changes == 'false' && steps.changes.outputs.has_non_coverable_changes == 'true'
45-
uses: actions/github-script@v7
43+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
4644
with:
4745
script: |
4846
const checkName = 'Codacy Coverage Variation';

0 commit comments

Comments
 (0)