From 520ff33583948467e1d5fda2609ef6416538978d Mon Sep 17 00:00:00 2001 From: acaptutorials Date: Tue, 6 Aug 2024 13:36:03 +0800 Subject: [PATCH] chore: specify refs during checkout --- .github/workflows/deploy-dev.yml | 2 ++ .github/workflows/deploy-prod.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 17aec79b..9d4d01cc 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -20,6 +20,8 @@ jobs: steps: - name: Checkout the repository uses: actions/checkout@v3 + with: + ref: 'dev' - name: Use NodeJS v20.15.0 uses: actions/setup-node@v3 with: diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 1a29e4bd..37b87a4b 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -19,6 +19,8 @@ jobs: steps: - name: Checkout the repository uses: actions/checkout@v3 + with: + ref: ${{ github.event.release.tag_name }} - name: Use NodeJS v20.15.0 uses: actions/setup-node@v3 with: