Skip to content

Commit

Permalink
Updated create-release action
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisli30 committed Dec 5, 2024
1 parent 345b740 commit fd69be8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Release with Changeset

on:
workflow_dispatch:
branches:
- main

jobs:
release:
Expand Down Expand Up @@ -48,10 +46,17 @@ jobs:
echo "::set-output name=commit::false"
fi
- name: Debug Commit Output
run: echo "Commit output: ${{ steps.changesets.outputs.commit }}"

- name: Pull Latest Changes
run: git pull origin main --rebase
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Push Version Bump to Main
if: steps.changesets.outputs.commit == 'true'
run: |
git push origin main
run: git push origin main
env:
GITHUB_TOKEN: ${{ github.token }}

Expand Down Expand Up @@ -104,4 +109,4 @@ jobs:
gh release create "v${CURRENT_VERSION}" \
--title "v${CURRENT_VERSION}: ${{ steps.release_summary.outputs.summary }}" \
--notes "${{ steps.release_summary.outputs.summary }}" \
--generate-notes
--generate-notes

0 comments on commit fd69be8

Please sign in to comment.