-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more default values, less git commands
- Loading branch information
1 parent
42349d0
commit 88efbb5
Showing
1 changed file
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|