4 workflows: [pages-build-deployment]
7 SYNC_SECRET: ${{ secrets.SYNC_SECRET }}
8 SYNC_COMMAND: ${{ secrets.SYNC_COMMAND }}
11 runs-on: ubuntu-latest
13 - run: umask 0077 && echo "${{ env.SYNC_SECRET }}" >/tmp/sync_secret
14 - uses: actions/github-script@v7
17 const artifact_id = await github.rest.actions.listWorkflowRunArtifacts({
18 owner: context.repo.owner,
19 repo: context.repo.repo,
20 run_id: context.payload.workflow_run.id,
23 const artifact = await github.rest.actions.downloadArtifact({
24 owner: context.repo.owner,
25 repo: context.repo.repo,
26 artifact_id: artifact_id.data.artifacts[0].id,
27 archive_format: "zip",
29 await exec.exec(process.env.SYNC_COMMAND, [], {
30 input: Buffer.from(artifact.data)