From c68bf6e91a556ec91ea9e494a9d6a580c96318ec Mon Sep 17 00:00:00 2001 From: Sebastien Bousquet Date: Wed, 30 Oct 2024 17:10:27 +0100 Subject: [PATCH] ci: set checkout fetch-depth to 0 --- .github/workflows/release.yml | 2 ++ release-actions.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8253c06..db44980 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.4 + with: + fetch-depth: 0 - uses: actions/setup-node@v4 with: registry-url: 'https://registry.npmjs.org' diff --git a/release-actions.sh b/release-actions.sh index ae4bc6d..026bebc 100755 --- a/release-actions.sh +++ b/release-actions.sh @@ -27,6 +27,7 @@ releaseProd(){ fi echo "=> Get "$BRANCH" branch of arlas-d3 project" + git fetch git checkout "$BRANCH" git pull origin "$BRANCH" echo "=> Test to lint and build the project on "$BRANCH" branch"