From e743f9f2cebd22d380b3a8dd2d3c150b296e2265 Mon Sep 17 00:00:00 2001 From: Derek Su Date: Thu, 23 Jan 2025 11:47:54 +0800 Subject: [PATCH] fix(workflow): use env instead Longhorn 10193 Signed-off-by: Derek Su --- .github/workflows/create-crd-update-pr-in-longhorn-repo.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-crd-update-pr-in-longhorn-repo.yml b/.github/workflows/create-crd-update-pr-in-longhorn-repo.yml index e7b15a9469..18392640fd 100644 --- a/.github/workflows/create-crd-update-pr-in-longhorn-repo.yml +++ b/.github/workflows/create-crd-update-pr-in-longhorn-repo.yml @@ -10,6 +10,8 @@ on: jobs: create-pr: runs-on: ubuntu-latest + env: + CUSTOM_TOKEN: ${{ secrets.CUSTOM_GITHUB_ACTION_TOKEN }} steps: - name: Prepare Packages run: | @@ -40,7 +42,7 @@ jobs: id: cpr uses: peter-evans/create-pull-request@v7 with: - token: ${{ secrets.CUSTOM_GITHUB_ACTION_TOKEN }} + token: ${{ env.CUSTOM_TOKEN }} branch: "update-crds-and-manifests-longhorn-manager-${{ github.event.pull_request.number }}" delete-branch: true sign-commits: true