Skip to content

Commit 8dd5876

Browse files
authored
Merge pull request #21 from kellenmurphy/fix/release-please-automerge
fix: automate release PR approval, merge, and CI trigger
2 parents bce54b1 + 9e7f2f3 commit 8dd5876

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main]
66
pull_request:
77
branches: [main]
8+
types: [opened, synchronize, reopened, labeled]
89

910
permissions:
1011
contents: read

.github/workflows/release-please.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@ jobs:
1616
- name: Release Please
1717
# googleapis/release-please-action v4
1818
uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071
19+
id: release
1920
with:
2021
token: ${{ secrets.GITHUB_TOKEN }}
2122
config-file: release-please-config.json
2223
manifest-file: .release-please-manifest.json
24+
25+
- name: Approve and enable auto-merge on release PR
26+
if: ${{ steps.release.outputs.pr }}
27+
env:
28+
GH_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }}
29+
run: |
30+
gh pr review "${{ steps.release.outputs.pr }}" --approve --body "Approved by release-please automation."
31+
gh pr merge --auto --merge "${{ steps.release.outputs.pr }}"

0 commit comments

Comments
 (0)