Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6150d40

Browse filesBrowse files
committed
[meta] update release workflow to prune footnotes
1 parent 5b20fe5 commit 6150d40
Copy full SHA for 6150d40

File tree

Expand file treeCollapse file tree

2 files changed

+14
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+14
-5
lines changed

‎.github/workflows/release.yml

Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+13-5Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,26 @@ jobs:
3737
id: changelog
3838
run: |
3939
# Parse the changelog for common links
40-
_links="$(grep -P '^\[.*]:.+' ${GITHUB_WORKSPACE}/CHANGELOG.md | sort -u)"
40+
_links="$(egrep '^\[.*]:.+' ${GITHUB_WORKSPACE:-.}/CHANGELOG.md | sort -u)"
4141
_links="${_links//'%'/'%25'}"
42-
_links="${_links//$'\n'/'%0A'}"
42+
# _links="${_links//$'\n'/'%0A'}"
4343
_links="${_links//$'\r'/'%0D'}"
4444
# Set output 'links' to $_links
4545
DELIMITER=$(uuidgen)
4646
echo "links<<${DELIMITER}" >> "${GITHUB_OUTPUT}"
4747
echo "$_links" >> "${GITHUB_OUTPUT}"
4848
echo "${DELIMITER}" >> "${GITHUB_OUTPUT}"
4949
50-
- uses: softprops/action-gh-release@v1
50+
- id: prune-footnotes
51+
run: |
52+
tmp.md < "${{ steps.changelog_reader.outputs.changes }}"
53+
tmp.md << ${{ steps.changelog.outputs.links }}
54+
DELIMITER=$(uuidgen)
55+
echo "body<<${DELIMITER}" >> "${GITHUB_OUTPUT}"
56+
npx gfm-footnotes -i tmp.md > "${GITHUB_OUTPUT}"
57+
echo "${DELIMITER}" >> "${GITHUB_OUTPUT}"
58+
59+
- uses: softprops/action-gh-release@v2
5160
with:
5261
body: |
53-
${{ steps.changelog_reader.outputs.changes }}
54-
${{ steps.changelog.outputs.links }}
62+
${{ steps.prune-footnotes.outputs.body }}

‎package.json

Copy file name to clipboardExpand all lines: package.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"eslint-remote-tester-repositories": "^1.0.1",
6666
"eslint-scope": "^3.7.3",
6767
"espree": "^3.5.4",
68+
"gfm-footnotes": "^1.0.0",
6869
"glob": "=10.3.7",
6970
"istanbul": "^0.4.5",
7071
"jackspeak": "=2.1.1",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.