Skip to content

Commit

Permalink
Fix RegEx with 'sed' commands - 'createchangelog' Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
og-mrk committed Aug 1, 2024
1 parent bb31064 commit a00ac0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/createchangelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ jobs:
done
# Make http(s) links clickable by converting any links to a format understandable by Markdown
sed -ri 's/(https?:\/\/.*?\/(pull|compare)\/)(.*?)/\[\3\](\1)/g' $changelog_path
sed -ri 's/\[([0-9]+)\]\((https?:\/\/.*?\/pull\/.*?)\)/\[#\1\]\(\2\)/g' $changelog_path
sed -ri 's/(https?:\/\/.*?\/(pull|compare)\/(.*?[ \t\r\n]))/\[\3\](\1)/g' $changelog_path
sed -ri 's/\[([0-9]+)\]\((https?:\/\/.*?\/pull\/.*?[ \t\r\n])\)/\[#\1\]\(\2\)/g' $changelog_path
sed -ri 's/@([^ \t\n]+)/[@\1](https:\/\/github\.com\/\1)/g' $changelog_path
env:
GH_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit a00ac0e

Please sign in to comment.