mirror of
https://github.com/unraid/api.git
synced 2026-02-17 05:28:32 -06:00
fix: load tag correctly
This commit is contained in:
6
.github/workflows/release-production.yml
vendored
6
.github/workflows/release-production.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
|||||||
regex: true
|
regex: true
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
target: "./"
|
target: "./"
|
||||||
version: ${{ inputs.version || 'latest' }}
|
version: ${{ inputs.version && format('tags/{0}', inputs.version) || 'latest' }}
|
||||||
|
|
||||||
- uses: cardinalby/git-get-release-action@v1
|
- uses: cardinalby/git-get-release-action@v1
|
||||||
id: release-info
|
id: release-info
|
||||||
@@ -34,13 +34,13 @@ 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 xml2js
|
- run: npm install html-sloppy-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 as escapeHtml } = require('html-sloppy-escaper');
|
const { escape } = require('html-sloppy-escaper');
|
||||||
const releaseNotes = escapeHtml(`${{ steps.release-info.outputs.body }}`);
|
const releaseNotes = escapeHtml(`${{ steps.release-info.outputs.body }}`);
|
||||||
|
|
||||||
if (!releaseNotes) {
|
if (!releaseNotes) {
|
||||||
|
|||||||
Reference in New Issue
Block a user