Skip to content

Commit

Permalink
ci: let release-please maintain the changelog (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi committed Jun 29, 2023
1 parent 2da147d commit ed849db
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ jobs:
- run: flutter pub get
- run: flutter pub publish --dry-run

release:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: dart
changelog-notes-type: github
pull-request-title-pattern: 'chore: release v${version}'

test:
runs-on: ubuntu-22.04
steps:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PR

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: read

jobs:
title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
id: semantic-pr
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- uses: marocchino/sticky-pull-request-comment@v2
if: always() && steps.semantic-pr.outputs.error_message != null
with:
header: semantic-pr-error
message: ${{steps.semantic-pr.outputs.error_message}}
- if: steps.semantic-pr.outputs.error_message == null
uses: marocchino/sticky-pull-request-comment@v2
with:
header: semantic-pr-error
delete: true

0 comments on commit ed849db

Please sign in to comment.