[llvm] workflows: Fix missing GITHUB_TOKEN in release-doxygen.yml upload step (PR #91091)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Sat May 4 14:40:10 PDT 2024


https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/91091

We were accidentally setting the GITHUB_TOKEN environment variable in the previous step.

>From 0a377d4421791559e5486f7c3e9555440b2f090c Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Sat, 4 May 2024 21:37:37 +0000
Subject: [PATCH] workflows: Fix missing GITHUB_TOKEN in release-doxygen.yml
 upload step

We were accidentally setting the GITHUB_TOKEN environment variable in the
previous step.
---
 .github/workflows/release-doxygen.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/release-doxygen.yml b/.github/workflows/release-doxygen.yml
index 5e322849a1d093..12c14bea52f624 100644
--- a/.github/workflows/release-doxygen.yml
+++ b/.github/workflows/release-doxygen.yml
@@ -56,12 +56,12 @@ jobs:
           pip3 install --user -r ./llvm/docs/requirements.txt
 
       - name: Build Doxygen
-        env:
-          GITHUB_TOKEN: ${{ github.token }}
         run: |
           ./llvm/utils/release/build-docs.sh -release "${{ inputs.release-version }}" -no-sphinx
 
       - name: Upload Doxygen
         if: env.upload
+        env:
+          GITHUB_TOKEN: ${{ github.token }}
         run: |
           ./llvm/utils/release/github-upload-release.py --token "$GITHUB_TOKEN" --release "${{ inputs.release-version }}" --user "${{ github.actor }}" upload --files ./*doxygen*.tar.xz



More information about the llvm-commits mailing list