-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from clouddrove/Automation/changelog
ci: Update changelog
- Loading branch information
Showing
1 changed file
with
9 additions
and
56 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 |
---|---|---|
@@ -1,62 +1,15 @@ | ||
# name: changelog | ||
# permissions: write-all | ||
|
||
# on: | ||
# push: | ||
# tags: | ||
# - "*" | ||
# # Allows you to run this workflow manually from the Actions tab | ||
# workflow_dispatch: | ||
# jobs: | ||
# call-workflow-changelog: | ||
# uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master | ||
# with: | ||
# branch: 'master' | ||
|
||
|
||
name: CHANGELOG | ||
name: changelog | ||
permissions: write-all | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB }} | ||
|
||
- name: Update CHANGELOG | ||
id: changelog | ||
uses: requarks/changelog-action@v1 | ||
with: | ||
token: ${{ github.token }} | ||
excludeTypes: "" | ||
includeInvalidCommits: false | ||
tag: ${{ github.ref_name }} | ||
|
||
- name: Create Release | ||
uses: ncipollo/[email protected] | ||
with: | ||
allowUpdates: true | ||
draft: false | ||
makeLatest: true | ||
name: ${{ github.ref_name }} | ||
body: ${{ steps.changelog.outputs.changes }} | ||
token: ${{ github.token }} | ||
|
||
- name: Commit CHANGELOG.md | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
branch: master | ||
commit_user_name: nileshgadgi # defaults to "github-actions[bot]" | ||
commit_user_email: [email protected] # defaults to "41898282+github-actions[bot]@users.noreply.github.com" | ||
commit_author: Author <[email protected]> # defaults to author of the commit that triggered the run | ||
|
||
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }}' | ||
file_pattern: CHANGELOG.md | ||
call-workflow-changelog: | ||
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master | ||
secrets: inherit | ||
with: | ||
branch: 'master' |