+ script: |
+ const artifact_id = await github.rest.actions.listWorkflowRunArtifacts({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ run_id: context.payload.workflow_run.id,
+ per_page: 1,
+ });
+ const artifact = await github.rest.actions.downloadArtifact({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ artifact_id: artifact_id.data.artifacts[0].id,
+ archive_format: "zip",
+ });
+ await exec.exec(process.env.SYNC_COMMAND, [], {
+ input: Buffer.from(artifact.data)
+ });