Skip to content

Commit

Permalink
ci: reuse pr title & release actions from ufc/actions (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi committed Jul 3, 2023
1 parent 71f1a45 commit dca12c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 32 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/flutter-ci.yml
Expand Up @@ -75,19 +75,6 @@ jobs:
- name: Validate but do not publish the package
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-20.04
steps:
Expand Down
20 changes: 1 addition & 19 deletions .github/workflows/pr.yaml
Expand Up @@ -7,24 +7,6 @@ on:
- 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
uses: ubuntu-flutter-community/actions/.github/workflows/semantic-pr.yaml@main
11 changes: 11 additions & 0 deletions .github/workflows/release.yaml
@@ -0,0 +1,11 @@
name: Release

on:
push:
branches:
- main
workflow_dispatch:

jobs:
release:
uses: ubuntu-flutter-community/actions/.github/workflows/release-please.yaml@main

0 comments on commit dca12c2

Please sign in to comment.