diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3782829..f8f4474 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,7 @@ name: CI on: + workflow_dispatch: pull_request: branches: [main] push: diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 1aa4502..89cf664 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -5,6 +5,7 @@ on: branches: [main] permissions: + actions: write contents: write pull-requests: write @@ -12,8 +13,14 @@ jobs: release-please: runs-on: ubuntu-latest steps: - - uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0 + - id: release + uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0 with: config-file: release-please-config.json manifest-file: .release-please-manifest.json target-branch: main + - name: Run CI for release PR + if: ${{ steps.release.outputs.prs_created == 'true' }} + env: + GH_TOKEN: ${{ github.token }} + run: gh workflow run ci.yml --ref release-please--branches--main