Carl Tashian 11 ay önce
ebeveyn
işleme
07d544cbcc
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 4 2
      .github/workflows/publish-packages.yml

+ 4 - 2
.github/workflows/publish-packages.yml

@@ -38,10 +38,12 @@ jobs:
     steps:
     steps:
       - name: Validate tag (block pre-releases)
       - name: Validate tag (block pre-releases)
         run: |
         run: |
-          if [[ "${{ inputs.tag }}" == *"-rc"* ]]; then
+          if [[ "$TAG" == *"-rc"* ]]; then
             echo "::error::Pre-release tags (-rc) cannot be published to production repos"
             echo "::error::Pre-release tags (-rc) cannot be published to production repos"
             exit 1
             exit 1
           fi
           fi
+        env:
+          TAG: ${{ inputs.tag }}
 
 
       - name: Checkout
       - name: Checkout
         uses: actions/checkout@v4
         uses: actions/checkout@v4
@@ -51,7 +53,7 @@ jobs:
 
 
       - name: Extract version
       - name: Extract version
         id: version
         id: version
-        run: echo "version=${TAG#v}" >> $GITHUB_OUTPUT
+        run: echo "version=${TAG#v}" >> "$GITHUB_OUTPUT"
         env:
         env:
           TAG: ${{ inputs.tag }}
           TAG: ${{ inputs.tag }}