Skip to content

Commit 3894236

Browse files
committed
do not require changelog for dependabot PRs
1 parent 3448ca1 commit 3894236

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ jobs:
6262
steps:
6363
- name: echo changed files
6464
run: |
65-
if [[ ! "${{needs.changedfiles.outputs.markdown}}" == *"CHANGELOG.md"* ]]; then
65+
# 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
6671
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."
6772
exit 1
6873
fi

0 commit comments

Comments
 (0)