From 0aeea1cf7c42b325ea3a1c7ba177d979d1718f0f Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Fri, 17 Jan 2025 15:58:55 +0100 Subject: [PATCH] Stop in the workflow run ID to gh run download (#3593) In 078bc30e4d6912068d14851e4244b2ec0af9ae91 I reintroduced a typo in the variable because of a merge conflict, making it end up as an empty string again. It happened to work because it was the last run (default behavior) but there's no guarantee this is correct. Fixes: 078bc30e4d69 ("Rely on gh run download to extract the artifacts (#3591)") --- .github/workflows/preview.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 63482542f5..3732483249 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -55,13 +55,13 @@ jobs: - name: Create preview layout run: | - gh run download '${{ github.event.worfklow_run.id }}' --name 'foreman-docs-web-master' --dir preview - gh run download '${{ github.event.worfklow_run.id }}' --name 'foreman-docs-html-${{ fromJSON(env.PR_DATA).branch_name }}' --dir 'preview/${{ fromJSON(env.PR_DATA).target_name }}' + gh run download '${{ github.event.workflow_run.id }}' --name 'foreman-docs-web-master' --dir preview + gh run download '${{ github.event.workflow_run.id }}' --name 'foreman-docs-html-${{ fromJSON(env.PR_DATA).branch_name }}' --dir 'preview/${{ fromJSON(env.PR_DATA).target_name }}' env: GH_TOKEN: ${{ github.token }} - name: Create old base - run: gh run download '${{ github.event.worfklow_run.id }}' --name foreman-docs-html-base --dir old + run: gh run download '${{ github.event.workflow_run.id }}' --name foreman-docs-html-base --dir old env: GH_TOKEN: ${{ github.token }}