Skip to content

Commit 8bd1be0

Browse files
committed
ci: use googleapis release-please-action
1 parent 4163e4e commit 8bd1be0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/create-release-pr.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: "Create release-please pull request"
33
on:
44
workflow_dispatch:
55
workflow_call:
6+
secrets:
7+
RELEASE_PLEASE_TOKEN:
8+
description: "PAT for release-please to create releases and PRs"
9+
required: true
610
outputs:
711
releases_created:
812
description: "If true, a release PR has been merged"
@@ -13,11 +17,13 @@ on:
1317

1418
jobs:
1519
release-please:
20+
permissions: write-all
1621
runs-on: ubuntu-latest
1722
steps:
18-
- uses: google-github-actions/release-please-action@v4
23+
- uses: googleapis/release-please-action@v4
1924
id: release
20-
25+
with:
26+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
2127
outputs:
2228
releases_created: ${{ steps.release.outputs.releases_created }}
2329
tag_name: ${{ steps.release.outputs.tag_name }}

.github/workflows/on-main-push.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525

2626
release-please:
2727
needs: [tests, integration-tests]
28+
permissions: write-all
2829
uses: ./.github/workflows/create-release-pr.yaml
30+
secrets: inherit
2931

3032
publish-packages:
3133
needs: release-please

0 commit comments

Comments
 (0)