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 288c4676b45d96c2debb6330e2c134f7568f8dd4..7f18dca85bd6167bbd97ade2941efebf0ef1b61c 100644
(file)
--- a/
.github/workflows/sync_site.yml
+++ b/
.github/workflows/sync_site.yml
@@
-1,4
+1,3
@@
-
name: sync_site
on:
name: sync_site
on:
@@
-6,10
+5,15
@@
on:
workflows: [pages-build-deployment]
types: [completed]
workflows: [pages-build-deployment]
types: [completed]
+env:
+ SYNC_SECRET: ${{ secrets.SYNC_SECRET }}
+ SYNC_COMMAND: ${{ secrets.SYNC_COMMAND }}
+
jobs:
sync:
runs-on: ubuntu-latest
steps:
jobs:
sync:
runs-on: ubuntu-latest
steps:
+ - run: umask 0077 && echo "${{ env.SYNC_SECRET }}" >/tmp/sync_secret
- uses: actions/github-script@v5
with:
script: |
- uses: actions/github-script@v5
with:
script: |
@@
-25,9
+29,6
@@
jobs:
artifact_id: artifact_id.data.artifacts[0].id,
archive_format: "zip",
});
artifact_id: artifact_id.data.artifacts[0].id,
archive_format: "zip",
});
- console.log(artifact_url);
- github.exec.exec("tar xz", [], {
- input: artifact.data
+ await exec.exec(process.env.SYNC_COMMAND, [], {
+ input: Buffer.from(artifact.data)
});
});
- - run: ls -al
-