Skip to content

Commit

Permalink
fix(workflows): updated release
Browse files Browse the repository at this point in the history
  • Loading branch information
felicandalc committed Jun 28, 2023
1 parent 8414794 commit e933ccd
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,21 @@ on:
branches:
- master

permissions:
contents: write
pull-requests: write

jobs:
deploy:
generate-changelog:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
- uses: actions/checkout@v2
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}

- name: Create release
uses: ncipollo/release-action@v1.12.0
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
fetch-depth: 0
- uses: BobAnkh/auto-generate-changelog@v1
with:
branch: main
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md
REPO_NAME: 'felicandalc/nvim'
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
PATH: 'CHANGELOG.md'
COMMIT_MESSAGE: 'docs(CHANGELOG): update release notes'
TYPE: 'feat:Feature,fix:Bug Fixes,docs:Documentation,refactor:Refactor,build:Dependencies'

0 comments on commit e933ccd

Please sign in to comment.