mirror of
https://github.com/unraid/api.git
synced 2026-01-01 06:01:18 -06:00
fix: fix changelog thing again
This commit is contained in:
6
.github/workflows/release-production.yml
vendored
6
.github/workflows/release-production.yml
vendored
@@ -34,14 +34,14 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: '20.x'
|
||||||
- run: npm install html-sloppy-escaper@2 xml2js
|
- run: npm install html-escaper@2 xml2js
|
||||||
- name: Update Plugin Changelog
|
- name: Update Plugin Changelog
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const { escape } = require('html-sloppy-escaper');
|
const { escape } = require('html-escaper');
|
||||||
const releaseNotes = escapeHtml(`${{ steps.release-info.outputs.body }}`);
|
const releaseNotes = escape(`${{ steps.release-info.outputs.body }}`);
|
||||||
|
|
||||||
if (!releaseNotes) {
|
if (!releaseNotes) {
|
||||||
console.error('No release notes found');
|
console.error('No release notes found');
|
||||||
|
|||||||
Reference in New Issue
Block a user