name: sync_site
-
on:
workflow_run:
workflows: [pages-build-deployment]
types: [completed]
-
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
- - uses: actions/github-script@v5
+ - uses: actions/github-script@v7
with:
script: |
const artifact_id = await github.rest.actions.listWorkflowRunArtifacts({