From: Michael Wallner Date: Fri, 21 Jan 2022 17:43:53 +0000 (+0100) Subject: Update sync_site.yml X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fm6w6.github.io;a=commitdiff_plain;h=d52e7c1127ed99a6a194d5f89f5567cf905f0522 Update sync_site.yml --- diff --git a/.github/workflows/sync_site.yml b/.github/workflows/sync_site.yml index f64f0a6..288c467 100644 --- a/.github/workflows/sync_site.yml +++ b/.github/workflows/sync_site.yml @@ -11,26 +11,23 @@ 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 }} + github.exec.exec("tar xz", [], { + input: artifact.data + }); - run: ls -al