From aeba83bdab557b487b2e6caa2373f07f13b96385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=8E=AE=20=28Jade=20Lin=29?= Date: Wed, 14 Aug 2024 23:30:29 +0800 Subject: [PATCH] Downloading artifacts requires right run-id --- .github/workflows/CD.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index cea72b3..b0b062c 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -92,11 +92,11 @@ jobs: # The repository owner and the repository name joined together by "/". # If github-token is specified, this is the repository that artifacts will be downloaded from. # Optional. Default is ${{ github.repository }} - repository: ${{ secrets.GH_REPO_WEB }} + repository: ${{ env.GH_REPO_WEB }} # The id of the workflow run where the desired download artifact was uploaded from. # If github-token is specified, this is the run that artifacts will be downloaded from. # Optional. Default is ${{ github.run_id }} - run-id: ${{ secrets.GH_RUN_WEB }} + run-id: ${{ env.GH_RUN_WEB }} # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.