From 15a4d09e8a572d9941d430291abf9866e0df9c92 Mon Sep 17 00:00:00 2001 From: Padmaja <52911293+padms@users.noreply.github.com> Date: Wed, 1 Nov 2023 18:12:58 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Final=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dataset-backup.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dataset-backup.yaml b/.github/workflows/dataset-backup.yaml index f29e17013..e28ac4f5b 100644 --- a/.github/workflows/dataset-backup.yaml +++ b/.github/workflows/dataset-backup.yaml @@ -11,9 +11,9 @@ on: - all required: true default: all - #schedule: - # Runs at 02:00 UTC every sunday - # - cron: '0 2 * * 0' + schedule: + # Runs at 02:00 UTC every sunday + - cron: '0 2 * * 0' env: BUILD_ARTIFACT_PATH: ${{ github.workspace }}/backups jobs: @@ -62,6 +62,7 @@ jobs: run: | pnpm sanityv3 install - name: Export Data + id: export-data working-directory: ./sanityv3 env: SANITY_AUTH_TOKEN: ${{ secrets.SANITY_BACKUP_TOKEN }} @@ -69,6 +70,7 @@ jobs: mkdir ${{ env.BUILD_ARTIFACT_PATH }} pnpm sanity dataset export ${{ matrix.dataset }} ${{ env.BUILD_ARTIFACT_PATH }}/${{ matrix.dataset }}.tar.gz - name: Upload backup.tar.gz + id: upload-backup uses: actions/upload-artifact@v3 with: name: backup-tarball