diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index c3398a2bd..51d3ad16b 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -14,9 +14,9 @@ jobs: steps: - name: Checkout repository and submodules uses: actions/checkout@v4 - - - name: Unshallow - run: git fetch --prune --unshallow + with: + fetch-depth: 0 + fetch-tags: true - name: Setup Go uses: actions/setup-go@v4 @@ -56,7 +56,7 @@ jobs: - name: Update snapshot tag # Snapshot release may only be updated for commits to the main branch. - # if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' run: | git tag snapshot @@ -65,7 +65,7 @@ jobs: - name: Update snapshot release # Snapshot release may only be updated for commits to the main branch. - # if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea9e4690c..519dcf43b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,9 +15,9 @@ jobs: steps: - name: Checkout repository and submodules uses: actions/checkout@v4 - - - name: Unshallow - run: git fetch --prune --unshallow + with: + fetch-depth: 0 + fetch-tags: true - name: Setup Go uses: actions/setup-go@v4