projects
/
m6w6
/
m6w6.github.io
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Update sync_site.yml
[m6w6/m6w6.github.io]
/
.github
/
workflows
/
sync_site.yml
diff --git
a/.github/workflows/sync_site.yml
b/.github/workflows/sync_site.yml
index f14288ef9e84bbf9ecd2afb847deb44c369bfda2..7eed3b1f7fb20d92e8da7efc4e03498eefd0d292 100644
(file)
--- a/
.github/workflows/sync_site.yml
+++ b/
.github/workflows/sync_site.yml
@@
-11,25
+11,22
@@
jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v5
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v5
- id: shitshow
with:
with:
- result-encoding: string
script: |
const artifact_id = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
script: |
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.workflow
_run.
id,
per_page: 1,
});
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",
});
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: Buffer.from(artifact.data)
+ });
- run: ls -al
- run: ls -al