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 actions/github-script from v5 to v7
[m6w6/m6w6.github.io]
/
.github
/
workflows
/
sync_site.yml
diff --git
a/.github/workflows/sync_site.yml
b/.github/workflows/sync_site.yml
index 63a13b0a2e176ecbe3e667320ed3e23ab82625d8..b5e18f881be2ecbf2ac71be9f5b4eb2a3065f88f 100644
(file)
--- a/
.github/workflows/sync_site.yml
+++ b/
.github/workflows/sync_site.yml
@@
-1,21
+1,17
@@
-
name: sync_site
name: sync_site
-
on:
workflow_run:
workflows: [pages-build-deployment]
types: [completed]
on:
workflow_run:
workflows: [pages-build-deployment]
types: [completed]
-
env:
SYNC_SECRET: ${{ secrets.SYNC_SECRET }}
SYNC_COMMAND: ${{ secrets.SYNC_COMMAND }}
env:
SYNC_SECRET: ${{ secrets.SYNC_SECRET }}
SYNC_COMMAND: ${{ secrets.SYNC_COMMAND }}
-
jobs:
sync:
runs-on: ubuntu-latest
steps:
- run: umask 0077 && echo "${{ env.SYNC_SECRET }}" >/tmp/sync_secret
jobs:
sync:
runs-on: ubuntu-latest
steps:
- run: umask 0077 && echo "${{ env.SYNC_SECRET }}" >/tmp/sync_secret
- - uses: actions/github-script@v
5
+ - uses: actions/github-script@v
7
with:
script: |
const artifact_id = await github.rest.actions.listWorkflowRunArtifacts({
with:
script: |
const artifact_id = await github.rest.actions.listWorkflowRunArtifacts({