From 94560cbcddbf7b66424162b53d0b9c01d10620a4 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 21 Jan 2022 19:36:48 +0100 Subject: [PATCH] Update sync_site.yml --- .github/workflows/sync_site.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync_site.yml b/.github/workflows/sync_site.yml index 7eed3b1..5a071f6 100644 --- a/.github/workflows/sync_site.yml +++ b/.github/workflows/sync_site.yml @@ -6,10 +6,15 @@ on: 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 with: script: | @@ -25,7 +30,8 @@ jobs: artifact_id: artifact_id.data.artifacts[0].id, archive_format: "zip", }); - await exec.exec("tar xz", [], { + const + await exec.exec(process.env.SYNC_COMMAND, [], { input: Buffer.from(artifact.data) }); - run: ls -al -- 2.30.2