Skip to content

fix: Correct GitHub actions workflow #2

fix: Correct GitHub actions workflow

fix: Correct GitHub actions workflow #2

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
pull_request:
permissions:
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
outputs:
skipped: ${{ steps.changelog.outputs.skipped }}
tag: ${{ steps.changelog.outputs.tag }}
clean_changelog: ${{ steps.changelog.outputs.clean_changelog }}
version: ${{ steps.changelog.outputs.version }}
steps:
- name: Checkout 🔔
uses: actions/checkout@v4
- name: Conventional Changelog Action 📋
id: changelog
uses: TriPSs/conventional-changelog-action@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
git-user-name: "github-actions[bot]"
git-user-email: "github-actions[bot]@users.noreply.github.com"
skip-git-pull: "true"
skip-on-empty: "false"
release-count: 10
version-file: package.yaml
create-summary: true
- name: Generate Release 📦
if: ${{ steps.changelog.outputs.skipped == 'false' }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
generate_release_notes: true
body: ${{ steps.changelog.outputs.clean_changelog }}