X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fm6w6.github.io;a=blobdiff_plain;f=.github%2Fworkflows%2Fsync_site.yml;h=8a5100630eac46821af3a9eb843fd0cd9dfb3065;hp=f64f0a6df551cb31620ab3f38c1b1721533083ff;hb=48eadf26d01ad06f644a04edb77ebe26559798c0;hpb=65d7ac376a097c804d408334f72caf4e65f526be diff --git a/.github/workflows/sync_site.yml b/.github/workflows/sync_site.yml index f64f0a6..8a51006 100644 --- a/.github/workflows/sync_site.yml +++ b/.github/workflows/sync_site.yml @@ -11,26 +11,22 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/github-script@v5 - id: shitshow 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, per_page: 1, }); - console.log(artifact_id); - const artifact_url = await github.rest.actions.downloadArtifact({ + 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", }); - console.log(artifact_url); - return artifact_url.headers["location"]; - - run: curl -sSLO ${{ steps.shitshow.outputs.result }} + await exec.exec("tar xz", [], { + input: artifact.data + }); - run: ls -al