[llvm] workflows/release-tasks: Remove template expansion (PR #199444)

via llvm-commits llvm-commits at lists.llvm.org
Sun May 24 13:04:56 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-github-workflow

Author: Tom Stellard (tstellar)

<details>
<summary>Changes</summary>

https://github.com/llvm/llvm-project/security/code-scanning/1737 https://github.com/llvm/llvm-project/security/code-scanning/1738 https://github.com/llvm/llvm-project/security/code-scanning/1739 https://github.com/llvm/llvm-project/security/code-scanning/1740 https://github.com/llvm/llvm-project/security/code-scanning/1741 https://github.com/llvm/llvm-project/security/code-scanning/1742

---
Full diff: https://github.com/llvm/llvm-project/pull/199444.diff


1 Files Affected:

- (modified) .github/workflows/release-tasks.yml (+7-5) 


``````````diff
diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index 9b191140c3db2..eeac9df8a036e 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -20,8 +20,8 @@ jobs:
       - name: Validate Tag
         id: validate-tag
         run: |
-          echo "${{ github.ref_name }}" | grep -e '^llvmorg-[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc[0-9]\+\)\?$'
-          release_version=$(echo "${{ github.ref_name }}" | sed 's/llvmorg-//g')
+          echo "$GITHUB_REF_NAME" | grep -e '^llvmorg-[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc[0-9]\+\)\?$'
+          release_version=$(echo "$GITHUB_REF_NAME" | sed 's/llvmorg-//g')
           echo "release-version=$release_version" >> "$GITHUB_OUTPUT"
 
   release-create:
@@ -57,8 +57,9 @@ jobs:
         env:
           GITHUB_TOKEN: ${{ github.token }}
           USER_TOKEN: ${{ steps.app-token.outputs.token }}
+          RELEASE_VERSION: ${{ needs.validate-tag.outputs.release-version }}
         run: |
-          ./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --release ${{ needs.validate-tag.outputs.release-version }} --user ${{ github.actor }} --user-token "$USER_TOKEN" create
+          ./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --release "$RELEASE_VERSION" --user "$GITHUB_ACTOR" --user-token "$USER_TOKEN" create
   release-documentation:
     name: Build and Upload Release Documentation
     needs:
@@ -111,7 +112,7 @@ jobs:
           GITHUB_TOKEN: ${{ github.token }}
           USER_TOKEN: ${{ secrets.RELEASE_TASKS_USER_TOKEN }}
         run: |
-          ./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --user ${{ github.actor }} --user-token "$USER_TOKEN" check-permissions
+          ./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --user "$GITHUB_ACTOR" --user-token "$USER_TOKEN" check-permissions
 
       - name: Test lit
         run: |
@@ -202,5 +203,6 @@ jobs:
       - name: Uncomment Download Links
         env:
           GITHUB_TOKEN: ${{ github.token }}
+          RELEASE_VERSION: ${{ needs.validate-tag.outputs.release-version }}
         run: |
-          ./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --release ${{ needs.validate-tag.outputs.release-version }} uncomment_download_links
+          ./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --release "$RELEASE_VERSION" uncomment_download_links

``````````

</details>


https://github.com/llvm/llvm-project/pull/199444


More information about the llvm-commits mailing list