From ff50cf277cc677ced7df47ff8bb4cffb1b4a5bb6 Mon Sep 17 00:00:00 2001 From: dylankelly Date: Wed, 16 Oct 2024 19:30:35 +1100 Subject: [PATCH] chore: release to use branch instead of tag for commit --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 131281985..7af231459 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -47,12 +47,12 @@ jobs: if: ${{ !github.event.release.prerelease }} run: | git add . - git commit -m "chore: release ${{ !github.event.release.name }}" + git commit -m "chore: release ${{ github.event.release.name }}" - name: Push changes if: ${{ !github.event.release.prerelease }} run: | - git push origin ${{ github.ref }} # Pushes back to the same branch + git push origin ${{ github.event.release.target_commitish }} # Pushes back to target branch env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}