From cc745f57ee22a3bfc927e86ddbc0f4fd061787a3 Mon Sep 17 00:00:00 2001 From: Prince Date: Wed, 18 Sep 2024 16:06:41 +0400 Subject: [PATCH] chore: update workflow --- .github/workflows/generate-bundle-url.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/generate-bundle-url.yml b/.github/workflows/generate-bundle-url.yml index e68066b..0abf010 100644 --- a/.github/workflows/generate-bundle-url.yml +++ b/.github/workflows/generate-bundle-url.yml @@ -25,8 +25,9 @@ jobs: - name: Generate CDN URL id: generate-url run: | - node scripts/generate-bundle-url.js > url.txt - cat url.txt + # Generate the URL and capture it as an output + URL=$(node scripts/generate-bundle-url.js) + echo "URL=$URL" >> $GITHUB_ENV - name: Create or update PR comment with CDN URL uses: peter-evans/create-or-update-comment@v3 @@ -36,8 +37,6 @@ jobs: body: | ### Test Bundle URL: - [Preview script bundle](${ { steps.generate-url.outputs.url }}) + [Preview script bundle](${ { env.URL }}) ${ { github.event.pull_request.body }} - env: - GITHUB_EVENT_PULL_REQUEST_BODY: ${{ github.event.pull_request.body }}