Skip to content

Commit

Permalink
ci: squash pr commits
Browse files Browse the repository at this point in the history
  • Loading branch information
dianjuar committed Oct 29, 2024
1 parent a7a96e1 commit 9ce1f2c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/enforce-semantic-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ jobs:
PR_TITLE='${{ github.event.pull_request.title }}'
echo "PR TITLE": '$PR_TITLE'
echo "$PR_TITLE" | npx commitlint
echo "::set-output name=pr_title::$PR_TITLE"
generate-changelog:
needs: [check-pr-title]
name: Generate Changelog #? should we comment in the PR?
runs-on: ubuntu-latest
steps:
Expand All @@ -44,7 +46,11 @@ jobs:
fetch-depth: 0
- uses: ./.github/actions/setup

- name: Generate Changelog
- name: Generate tmp branch
run: git checkout -b changelog

- name: Squash commits
run: |
git checkout -b changelog
npx nx version ngx-deploy-npm --dry-run
git merge --squash ${{ github.event.pull_request.head.ref }}
git commit -m "${{ steps.check-title.outputs.pr_title }}"
git log

0 comments on commit 9ce1f2c

Please sign in to comment.