Skip to content

Commit

Permalink
ci: setup release-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
msudgh committed Dec 18, 2023
1 parent eaa8d45 commit 16d65ba
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update Changelog
name: Release Changelog

on:
pull_request:
Expand Down Expand Up @@ -35,9 +35,11 @@ jobs:
run: npx standard-version --release-as "${{ github.event.pull_request.title }}" # Use the PR title as the release version (lowercased, e.g. v1.0.0)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.head_ref, 'release/') && github.base_ref == 'main'

- name: Commit and Push Changes
run: |
git push origin ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.head_ref, 'release/') && github.base_ref == 'main'

0 comments on commit 16d65ba

Please sign in to comment.