-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (32 loc) · 1.16 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: release
on:
workflow_dispatch:
push:
branches:
- main
- "release-**"
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@4c5670f886fe259db4d11222f7dff41c1382304d # v3
with:
release-type: simple
package-name: ""
default-branch: main
pull-request-title-pattern: "ci: release ${version}"
token: ${{ secrets.PAT_TOKEN }}
extra-files: |
rockcraft.yaml
internal/version/const.go
id: release
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Workaround for https://github.com/googleapis/release-please/issues/922
if: ${{ steps.release.outputs.pr != '' }}
run: |
echo "Closing and reopening PR to trigger checks"
gh pr close ${{ fromJSON(steps.release.outputs.pr).number }} || true
gh pr reopen ${{ fromJSON(steps.release.outputs.pr).number }} || true
gh pr merge --auto --merge ${{ fromJSON(steps.release.outputs.pr).number }} || true
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}