Update sync_site.yml
[m6w6/m6w6.github.io] / .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);