Skip to content

Commit

Permalink
Merge pull request #32 from clouddrove/Automation/changelog
Browse files Browse the repository at this point in the history
ci: Update changelog
  • Loading branch information
anmolnagpal authored May 7, 2023
2 parents 81a3f71 + b555614 commit f817b30
Showing 1 changed file with 9 additions and 56 deletions.
65 changes: 9 additions & 56 deletions .github/workflows/changelog.yaml
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'

0 comments on commit f817b30

Please sign in to comment.