From 0d2253e7d04ba173e7d8d05b299404af93e92368 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 19 Jan 2024 09:30:15 +0000 Subject: [PATCH] Fix issues caused by the artifacts v4 upgrade Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/end-to-end-tests.yaml | 4 ++++ .github/workflows/netlify.yaml | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/end-to-end-tests.yaml b/.github/workflows/end-to-end-tests.yaml index 7390d4229b..51471dd107 100644 --- a/.github/workflows/end-to-end-tests.yaml +++ b/.github/workflows/end-to-end-tests.yaml @@ -13,6 +13,9 @@ on: type: string required: true description: "The name of the github repository to check out and build." + secrets: + ELEMENT_BOT_TOKEN: + required: true concurrency: group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.run_id }} @@ -54,6 +57,7 @@ jobs: - name: 📥 Download artifact uses: actions/download-artifact@v4 with: + github-token: ${{ secrets.ELEMENT_BOT_TOKEN }} run-id: ${{ github.event.workflow_run.id }} name: previewbuild path: webapp diff --git a/.github/workflows/netlify.yaml b/.github/workflows/netlify.yaml index ea63861959..ea393830d6 100644 --- a/.github/workflows/netlify.yaml +++ b/.github/workflows/netlify.yaml @@ -24,11 +24,10 @@ jobs: Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts. - # There's a 'download artifact' action, but it hasn't been updated for the workflow_run action - # (https://github.com/actions/download-artifact/issues/60) so instead we get this mess: - name: 📥 Download artifact uses: actions/download-artifact@v4 with: + github-token: ${{ secrets.ELEMENT_BOT_TOKEN }} run-id: ${{ github.event.workflow_run.id }} name: previewbuild path: webapp