Skip to content

Commit fe5b70f

Browse files
committed
Fix changelog entry filter regular expression syntax
The previous case insensitive flag syntax is not supported in JavaScript regular expressions, resulting in an error from the `arduino/create-changelog` action: Invalid regular expression: /^(?i)\[(skip|changelog)[ ,-](skip|changelog)\].*/: Invalid group I couldn't find a valid way to specify the i flag, so I used the brute force approach to achieve case-insensitivity.
1 parent 94ef751 commit fe5b70f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: .github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: arduino/[email protected]
2020
with:
2121
tag-regex: '^[0-9]+\.[0-9]+\.[0-9]+$'
22-
filter-regex: '^(?i)\[(skip|changelog)[ ,-](skip|changelog)\].*'
22+
filter-regex: '^\[([sS][kK][iI][pP]|[cC][hH][aA][nN][gG][eE][lL][oO][gG])[ ,-]([cC][hH][aA][nN][gG][eE][lL][oO][gG]|[sS][kK][iI][pP])\].*'
2323
changelog-file-path: "dist/CHANGELOG.md"
2424

2525
- name: Build

0 commit comments

Comments
 (0)