mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
feat(github): Update changelog workflow and config
This commit is contained in:
35
.github/workflows/new-release.yml
vendored
35
.github/workflows/new-release.yml
vendored
@@ -18,34 +18,23 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3 # Checkout our working repository
|
||||
|
||||
- uses: fregante/daily-version-action@v2
|
||||
name: Create tag if necessary
|
||||
- name: Create tag if necessary
|
||||
uses: fregante/daily-version-action@v2
|
||||
id: daily-version
|
||||
|
||||
- name: Conventional Changelog Action
|
||||
- name: Create changelog text
|
||||
if: steps.daily-version.outputs.created
|
||||
id: changelog
|
||||
uses: TriPSs/conventional-changelog-action@v3
|
||||
uses: loopwerk/tag-changelog@v1
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
skip-git-pull: "true"
|
||||
output-file: "false"
|
||||
fallback-version: "${{ steps.daily-version.outputs.version }}"
|
||||
skip-version-file: "true"
|
||||
git-message: "chore(release): {version}"
|
||||
git-user-name: "${{ github.actor }}"
|
||||
git-user-email: "${{ github.actor }}@users.noreply.github.com"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
config_file: ./../.github/tag-changelog-config.js
|
||||
|
||||
- name: Create release
|
||||
if: env.DAILY_VERSION_CREATED
|
||||
uses: actions/github-script@v6.4.1
|
||||
uses: actions/create-release@latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
await github.request(
|
||||
`POST /repos/${{ github.repository }}/releases`,
|
||||
{
|
||||
tag_name: "${{ steps.daily-version.outputs.version }}",
|
||||
body: "${{ steps.daily-version.outputs.clean_changelog }}"
|
||||
}
|
||||
);
|
||||
tag_name: ${{ steps.daily-version.outputs.version }}
|
||||
release_name: Release ${{ steps.daily-version.outputs.version }}
|
||||
body: ${{ steps.changelog.outputs.changes }}
|
||||
|
||||
Reference in New Issue
Block a user