From ca7f3a02ffb9c000de4f5371eef07011ee314174 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 18 Mar 2025 20:57:01 +0000 Subject: [PATCH] ci: fix workflow quoting --- .github/workflows/release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14998f113b..f5707e7b1e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,15 +45,16 @@ jobs: NPM_CONFIG_PROVENANCE: true - name: 🏷️ Create tag + env: + TAG_NAME: ${{ github.event.pull_request.head.ref }} run: | - TAG_NAME=${{ github.event.pull_request.head.ref }} - git tag $TAG_NAME - git push origin $TAG_NAME + git tag "$TAG_NAME" + git push origin "$TAG_NAME" - name: 🛳️ Create GitHub release - run: gh release create $TAG_NAME --title "$RELEASE_NAME" --notes "$BODY" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAG_NAME: ${{ github.event.pull_request.head.ref }} RELEASE_NAME: ${{ github.event.pull_request.head.ref }} BODY: ${{ github.event.pull_request.body }} + run: gh release create "$TAG_NAME" --title "$RELEASE_NAME" --notes "$BODY"