Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: let release-please maintain the changelog #721

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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