From 74a6677c3fa7e085abd07da2d8ac14d956c8b94b Mon Sep 17 00:00:00 2001 From: snomiao Date: Wed, 15 Oct 2025 21:39:04 +0000 Subject: [PATCH] refactor: consolidate to single artifact download action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace actions/download-artifact@v4 with dawidd6/action-download-artifact@v6 - Use single action for both same-run and cross-workflow downloads - Simplifies maintenance and reduces action dependencies - Maintains all existing fallback logic 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/release-pages.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-pages.yml b/.github/workflows/release-pages.yml index 00f9d9126..438095c11 100644 --- a/.github/workflows/release-pages.yml +++ b/.github/workflows/release-pages.yml @@ -40,12 +40,13 @@ jobs: id: fetch_storybook_trigger continue-on-error: true if: github.event_name == 'workflow_run' && github.event.workflow_run.name == 'Storybook and Chromatic CI' - uses: actions/download-artifact@v4 + uses: dawidd6/action-download-artifact@v6 with: + github_token: ${{ secrets.GITHUB_TOKEN }} + workflow: storybook-and-chromatic-ci.yaml name: storybook-static + run_id: ${{ github.event.workflow_run.id }} path: storybook-static - run-id: ${{ github.event.workflow_run.id }} - github-token: ${{ secrets.GITHUB_TOKEN }} - name: Download Storybook artifact (latest successful run on main) continue-on-error: true @@ -63,12 +64,13 @@ jobs: id: fetch_vitest_trigger continue-on-error: true if: github.event_name == 'workflow_run' && github.event.workflow_run.name == 'Vitest Tests' - uses: actions/download-artifact@v4 + uses: dawidd6/action-download-artifact@v6 with: + github_token: ${{ secrets.GITHUB_TOKEN }} + workflow: vitest-tests.yaml name: vitest-reports + run_id: ${{ github.event.workflow_run.id }} path: ./.pages/vitest-reports - run-id: ${{ github.event.workflow_run.id }} - github-token: ${{ secrets.GITHUB_TOKEN }} - name: Download Vitest reports (latest successful run on main) continue-on-error: true