[llvm] worklfows/release-documentation: Allow secrets pass through from calling workflow (PR #162765)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 9 20:11:37 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-github-workflow

Author: Tom Stellard (tstellar)

<details>
<summary>Changes</summary>

This should fix the part of the workflow that creates a PR with the new documentation.

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


2 Files Affected:

- (modified) .github/workflows/release-documentation.yml (+4) 
- (modified) .github/workflows/release-tasks.yml (+3) 


``````````diff
diff --git a/.github/workflows/release-documentation.yml b/.github/workflows/release-documentation.yml
index d3d375d3a6df9..4cf973d000a4b 100644
--- a/.github/workflows/release-documentation.yml
+++ b/.github/workflows/release-documentation.yml
@@ -25,6 +25,10 @@ on:
         description: 'Upload documentation'
         required: false
         type: boolean
+    secrets:
+      WWW_RELEASES_TOKEN:
+        description: "Secret used to create a PR with the documentation changes."
+        required: false
 
 jobs:
   release-documentation:
diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index a184996968cdd..d4c2a55fcc9d7 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -54,6 +54,9 @@ jobs:
     with:
       release-version: ${{ needs.validate-tag.outputs.release-version }}
       upload: true
+    # Called workflows don't have access to secrets by default, so we need to explicitly pass secrets that we use.
+    secrets:
+      WWW_RELEASES_TOKEN: ${{ secrets.WWW_RELEASES_TOKEN }}
 
   release-doxygen:
     name: Build and Upload Release Doxygen

``````````

</details>


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


More information about the llvm-commits mailing list