From b24a575cbbb972c843b5c9dd36726dab4f8ca2b5 Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Fri, 21 Feb 2025 16:18:49 -0500 Subject: [PATCH] fix: load tag correctly --- .github/workflows/release-production.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index a2689443e..ef16e7054 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -22,7 +22,7 @@ jobs: regex: true token: ${{ secrets.GITHUB_TOKEN }} target: "./" - version: ${{ inputs.version || 'latest' }} + version: ${{ inputs.version && format('tags/{0}', inputs.version) || 'latest' }} - uses: cardinalby/git-get-release-action@v1 id: release-info @@ -34,13 +34,13 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '20.x' - - run: npm install html-sloppy-escaper xml2js + - run: npm install html-sloppy-escaper@2 xml2js - name: Update Plugin Changelog uses: actions/github-script@v7 with: script: | 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 }}`); if (!releaseNotes) {