5 workflows: [pages-build-deployment]
9 SYNC_SECRET: ${{ secrets.SYNC_SECRET }}
10 SYNC_COMMAND: ${{ secrets.SYNC_COMMAND }}
14 runs-on: ubuntu-latest
16 - run: umask 0077 && echo "${{ env.SYNC_SECRET }}" >/tmp/sync_secret
17 - uses: actions/github-script@v5
20 const artifact_id = await github.rest.actions.listWorkflowRunArtifacts({
21 owner: context.repo.owner,
22 repo: context.repo.repo,
23 run_id: context.payload.workflow_run.id,
26 const artifact = await github.rest.actions.downloadArtifact({
27 owner: context.repo.owner,
28 repo: context.repo.repo,
29 artifact_id: artifact_id.data.artifacts[0].id,
30 archive_format: "zip",
32 await exec.exec(process.env.SYNC_COMMAND, [], {
33 input: Buffer.from(artifact.data)