From b575ed6436f318bbbd8ee971ad659e787de21199 Mon Sep 17 00:00:00 2001 From: Oliver Switzer Date: Mon, 2 Dec 2024 11:45:56 -0500 Subject: [PATCH] Use fetch-depth: 0 to avoid git error --- .github/workflows/publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 19db4a5..519e6a3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,6 +33,8 @@ jobs: steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Get calculated version id: version @@ -53,7 +55,7 @@ jobs: sed -i 's/version: ".*"/version: "'${RELEASE_VERSION#v}'"/g' mix.exs git add mix.exs git commit -m "chore: Bump version to ${RELEASE_VERSION}" - git push origin ${{ github.ref }} + git push origin HEAD:${{ github.ref }} - name: Create GitHub Release env: