From 6fb8ce8353b84ff9c101102ec863b8cc8ed9bdae Mon Sep 17 00:00:00 2001 From: Kas-tle <26531652+Kas-tle@users.noreply.github.com> Date: Sun, 14 Apr 2024 16:22:50 -0700 Subject: [PATCH] Should actually be correct now --- .github/workflows/preview.yml | 3 +++ .github/workflows/pullrequest.yml | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index c6c0c7080af..480caccaaa8 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -6,6 +6,9 @@ on: runId: required: true description: 'ID of the action to pull artifacts from' + version: + required: true + description: 'Version under which to upload to the Downloads API' jobs: upload: diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index a709a0482ca..036a6738969 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -108,12 +108,13 @@ jobs: uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea with: script: | - github.rest.repos.createWorkflowDispatch({ + github.rest.actions.createWorkflowDispatch({ owner: context.repo.owner, repo: context.repo.repo, workflow_id: 'preview.yml', ref: 'actions-testing', inputs: { - runId: '${{ github.run_id }}' + runId: '${{ github.run_id }}', + version: 'pr-${{ github.event.pull_request.number }}' } }); \ No newline at end of file