We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3448ca1 commit 3894236Copy full SHA for 3894236
1 file changed
.github/workflows/lint.yml
@@ -62,7 +62,12 @@ jobs:
62
steps:
63
- name: echo changed files
64
run: |
65
- if [[ ! "${{needs.changedfiles.outputs.markdown}}" == *"CHANGELOG.md"* ]]; then
+ # Filter out Gemfile.lock files from changed files
66
+ ALL_FILES="${{needs.changedfiles.outputs.all}}"
67
+ FILTERED_FILES=$(echo "$ALL_FILES" | tr ' ' '\n' | grep -v '^Gemfile\.lock$' | grep -v '^docs/Gemfile\.lock$' | tr '\n' ' ')
68
+
69
+ # Only require changelog if there are other files changed
70
+ if [[ -n "$FILTERED_FILES" ]] && [[ ! "${{needs.changedfiles.outputs.markdown}}" == *"CHANGELOG.md"* ]]; then
71
echo "::error file=CHANGELOG.md,line=1,col=1::Please make sure that you add a docs/CHANGELOG.md entry to describe the changes in this pull request."
72
exit 1
73
fi
0 commit comments