Skip to content

Commit

Permalink
fix: release publish commit process
Browse files Browse the repository at this point in the history
  • Loading branch information
dylankelly authored Oct 29, 2024
1 parent 8a2ec10 commit aa7f7c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,19 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "SDP Deploy"
git fetch origin ${{ github.event.release.target_commitish }}
git checkout ${{ github.event.release.target_commitish }}
- name: Commit changes
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 }}

Expand Down

0 comments on commit aa7f7c8

Please sign in to comment.