Skip to content

Commit

Permalink
more default values, less git commands
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmEmanuel committed Jan 5, 2024
1 parent 42349d0 commit 88efbb5
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/PublishReleaseAndModule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,32 @@ jobs:
ref: main
fetch-depth: 2

- name: Configure Git Actor
run: |
# Configure git with github-actions bot to make commits more pretty
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Get changelog
id: get-changelog
uses: release-flow/keep-a-changelog-action@v2
with:
command: query
version: unreleased

- uses: meeDamian/[email protected]
- name: Create Release
uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.ref_name }}
draft: true
body: ${{ steps.get-changelog.outputs.release-notes }}

- name: Update changelog
- name: Update Changelog
uses: thomaseizinger/keep-a-changelog-new-release@v1
with:
tag: ${{ github.ref }}

- name: Push changelog
run: |
# Configure git with github-actions bot to make commits more pretty
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout -b changelog/${{ github.ref_name }}
git add CHANGELOG.md
git commit -m "docs: update changelog for ${{ github.ref_name }}"
- name: Create Pull Request
id: create-pull-request
uses: peter-evans/create-pull-request@v5
Expand Down

0 comments on commit 88efbb5

Please sign in to comment.