Update sync_site.yml
authorMichael Wallner <mike@php.net>
Fri, 21 Jan 2022 17:03:40 +0000 (18:03 +0100)
committerGitHub <noreply@github.com>
Fri, 21 Jan 2022 17:03:40 +0000 (18:03 +0100)
.github/workflows/sync_site.yml

index f14288ef9e84bbf9ecd2afb847deb44c369bfda2..d2eae51b30dee19ead6e03cf109218f3a452bc9e 100644 (file)
@@ -15,10 +15,11 @@ jobs:
         with:
           result-encoding: string
           script: |
+            console.log(context);
             const artifact_id = await github.rest.actions.listWorkflowRunArtifacts({
               owner: context.repo.owner,
               repo: context.repo.repo,
-              run_id: context.payload.workflow.run_id,
+              run_id: context.payload.event.workflow.run_id,
               per_page: 1,
             });
             console.log(artifact_id);