Skip to content

Commit

Permalink
Fix workflows (#843)
Browse files Browse the repository at this point in the history
* fix some workflows

* prettier fix

* codeQL fix

* fix changelog md workflow
  • Loading branch information
anmode authored Jul 31, 2024
1 parent 20cca6c commit 7b73e25
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/Changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,39 @@ on:
push:
branches:
- main
- develop

jobs:
changelog:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v3

- name: Conventional Changelog Action
- name: Generate Changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v3
uses: conventional-changelog-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
output-file: "false"
output-file: CHANGELOG.md
preset: angular # You can choose a preset or configure your own

- name: Create Release
if: ${{ github.ref == 'refs/heads/main' && steps.changelog.outputs.skipped == 'false' }}
if: ${{ github.ref == 'refs/heads/main' && steps.changelog.outputs.changes != '' }}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
body: |
### Changelog
$(cat CHANGELOG.md) # Include the generated changelog here
- name: Commit Changelog
if: ${{ steps.changelog.outputs.changes != '' }}
uses: EndBug/add-and-commit@v9
with:
author_name: 'GitHub Actions'
author_email: 'actions@github.com'
message: 'Update changelog'

0 comments on commit 7b73e25

Please sign in to comment.