From 383e6b4695978449e71d98129aab2791069f1792 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 9 Jun 2024 04:38:09 +0100 Subject: [PATCH] ci: continuous release-plz --- .github/workflows/base.yml | 1 + .github/workflows/coverage.yml | 1 + .github/workflows/docs.yml | 1 + .github/workflows/exhaustive.yml | 1 + .github/workflows/lint.yml | 1 + .github/workflows/release-pr.yml | 25 ------------------------- .github/workflows/release.yml | 4 ++-- .release-plz.toml | 2 ++ 8 files changed, 9 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/release-pr.yml create mode 100644 .release-plz.toml diff --git a/.github/workflows/base.yml b/.github/workflows/base.yml index 4669d6a..a59be62 100644 --- a/.github/workflows/base.yml +++ b/.github/workflows/base.yml @@ -20,3 +20,4 @@ on: types: [checks_requested] pull_request: branches: [main] + types: [opened, synchronize, reopened, ready_for_review] diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2f19f31..337dc33 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -22,5 +22,6 @@ on: branches: [main] pull_request: branches: [main] + types: [opened, synchronize, reopened, ready_for_review] schedule: - cron: '0 0 * * 5' diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 48338f5..0c85236 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -21,3 +21,4 @@ on: types: [checks_requested] pull_request: branches: [main] + types: [opened, synchronize, reopened, ready_for_review] diff --git a/.github/workflows/exhaustive.yml b/.github/workflows/exhaustive.yml index d4da7b0..15dc3df 100644 --- a/.github/workflows/exhaustive.yml +++ b/.github/workflows/exhaustive.yml @@ -111,3 +111,4 @@ on: types: [checks_requested] pull_request: branches: [main] + types: [opened, synchronize, reopened, ready_for_review] diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d32a66a..c3fa740 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,3 +27,4 @@ on: types: [checks_requested] pull_request: branches: [main] + types: [opened, synchronize, reopened, ready_for_review] diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml deleted file mode 100644 index 090b7da..0000000 --- a/.github/workflows/release-pr.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Open release pr - -permissions: - pull-requests: write - contents: write - -on: workflow_dispatch - -jobs: - release-plz: - name: Release-plz - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - - name: Run release-plz - uses: MarcoIeni/release-plz-action@v0.5 - with: - command: release-pr - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c8d9a3b..31ac76b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,12 +18,12 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable + - name: Run release-plz uses: MarcoIeni/release-plz-action@v0.5 - with: - command: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.release-plz.toml b/.release-plz.toml new file mode 100644 index 0000000..effdd87 --- /dev/null +++ b/.release-plz.toml @@ -0,0 +1,2 @@ +[workspace] +pr_draft = true