From 13d29d43f2be234c9a4885f69327b190cd9da6fc Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Tue, 21 Nov 2023 18:59:30 +0530 Subject: [PATCH] fix ref --- .github/workflows/preview.yaml | 4 ++++ .github/workflows/production.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 421b0423..18fb511e 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -8,6 +8,9 @@ on: branches-ignore: - main +permissions: + pull-requests: read + jobs: Deploy-Preview: runs-on: ubuntu-latest @@ -23,6 +26,7 @@ jobs: uses: actions/checkout@v4 with: path: ./data-repo + ref: ${{ github.ref }} sparse-checkout: data - name: Move Data to Leaderboard diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index 95323d7e..25ff1760 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -6,6 +6,7 @@ on: push: branches: - main + jobs: Deploy-Production: runs-on: ubuntu-latest