diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 290b077f8c..81333df982 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 - name: Download metadata artifact - run: gh run download '${{ github.event.worfklow_run.id }}' -n pr + run: gh run download '${{ github.event.workflow_run.id }}' -n pr - name: Unzip artifact run: unzip pr.zip @@ -36,7 +36,7 @@ jobs: - uses: actions/checkout@v4 - name: Download metadata artifact - run: gh run download '${{ github.event.worfklow_run.id }}' -n pr + run: gh run download '${{ github.event.workflow_run.id }}' -n pr - name: Unzip artifact run: unzip pr.zip @@ -45,7 +45,7 @@ jobs: run: echo "PR_DATA=$(cat ./pr.json)" >> $GITHUB_ENV - name: Download other artifacts - run: gh run download '${{ github.event.worfklow_run.id }}' -n 'foreman-docs-html-${{ fromJSON(env.PR_DATA).branch_name }}' -n foreman-docs-html-base -n foreman-docs-web-master + run: gh run download '${{ github.event.workflow_run.id }}' -n 'foreman-docs-html-${{ fromJSON(env.PR_DATA).branch_name }}' -n foreman-docs-html-base -n foreman-docs-web-master - name: Set preview domain run: echo "PREVIEW_DOMAIN=$(echo ${{ github.repository }} | tr / - )-${{ github.job }}-pr-${{ fromJSON(env.PR_DATA).pr_number }}.surge.sh" >> $GITHUB_ENV