From dca12c2f501bf4385f318ef2648e9d2a7926aa34 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 3 Jul 2023 16:34:33 +0200 Subject: [PATCH] ci: reuse pr title & release actions from ufc/actions (#364) --- .github/workflows/flutter-ci.yml | 13 ------------- .github/workflows/pr.yaml | 20 +------------------- .github/workflows/release.yaml | 11 +++++++++++ 3 files changed, 12 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/flutter-ci.yml b/.github/workflows/flutter-ci.yml index fbe25b541..bf1b95fdc 100644 --- a/.github/workflows/flutter-ci.yml +++ b/.github/workflows/flutter-ci.yml @@ -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: diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 79a3a7185..689ffe988 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -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 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000..dfbf4f38e --- /dev/null +++ b/.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