Skip to content

Commit

Permalink
fix(ci): migrated changelog action on releases for conventional commi…
Browse files Browse the repository at this point in the history
…ts only (#446)
  • Loading branch information
antiyro authored Jan 3, 2025
1 parent 7319679 commit 95fcd78
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/changelog.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,15 @@ permissions:
pull-requests: write

jobs:
changelog:
name: Enforce CHANGELOG
if: github.event.pull_request.draft == false
uses: ./.github/workflows/changelog.yml

linters:
name: Run linters
if: github.event.pull_request.draft == false
uses: ./.github/workflows/linters.yml
needs: changelog

rust_check:
name: Run check
if: github.event.pull_request.draft == false
uses: ./.github/workflows/rust-check.yml
needs: changelog

linters_cargo:
name: Run Cargo linters
Expand All @@ -41,13 +34,11 @@ jobs:
name: Run Coverage
if: github.event.pull_request.draft == false
uses: ./.github/workflows/coverage.yml
needs: changelog
secrets: inherit

build:
name: Build Madara
uses: ./.github/workflows/build.yml
needs: changelog

js_test:
name: Run JS Tests
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Generate Release Notes
id: generate_notes
uses: conventional-changelog/releaser-action@v1
with:
preset: "angular"

- name: Create GitHub Release
uses: ncipollo/release-action@v1
Expand All @@ -26,4 +34,4 @@ jobs:
commit: ${{ github.sha }}
draft: false
prerelease: false
generateReleaseNotes: true
body: ${{ steps.generate_notes.outputs.notes }}

0 comments on commit 95fcd78

Please sign in to comment.