From ee76a4e823ef863eef1a76dbce72d1f897209ed1 Mon Sep 17 00:00:00 2001 From: shellscape Date: Wed, 13 Sep 2023 15:12:41 -0400 Subject: [PATCH] chore(repo): update workflow checkout --- .github/workflows/node-windows.yml | 6 ++++-- .github/workflows/release.yml | 12 +++++++----- .github/workflows/validate.yml | 6 ++++-- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/node-windows.yml b/.github/workflows/node-windows.yml index 39a740c85..474003c5c 100644 --- a/.github/workflows/node-windows.yml +++ b/.github/workflows/node-windows.yml @@ -26,9 +26,11 @@ jobs: - name: Checkout Commit uses: actions/checkout@v4 + with: + fetch-depth: 2 - - name: Checkout Master - run: git branch -f master origin/master + - name: Update Master + run: git pull --force --no-tags origin master:master - name: Setup Node uses: actions/setup-node@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11ab9a35f..acecfcbf2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,13 @@ jobs: steps: - name: Checkout Commit uses: actions/checkout@v4 + with: + fetch-depth: 2 + + - name: Update Master + run: | + git pull --force --no-tags origin master:master + git checkout master - name: Setup Node uses: actions/setup-node@v3 @@ -26,11 +33,6 @@ jobs: node-version: 20 registry-url: https://registry.npmjs.org/ - - name: Checkout Master - run: | - git branch -f master origin/master - git checkout master - - name: Enable Corepack id: pnpm-setup run: | diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a97dd28b2..a08ff2262 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -24,9 +24,11 @@ jobs: steps: - name: Checkout Commit uses: actions/checkout@v4 + with: + fetch-depth: 2 - - name: Checkout Master - run: git branch -f master origin/master + - name: Update Master + run: git pull --force --no-tags origin master:master - name: Setup Node uses: actions/setup-node@v3