-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (31 loc) · 1013 Bytes
/
Copy pathplease-release.yaml
File metadata and controls
34 lines (31 loc) · 1013 Bytes
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: please-release
on:
push:
branches:
- main
permissions: {}
jobs:
create-release:
runs-on: ubuntu-24.04
permissions:
pull-requests: write
contents: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- name: Please Release
id: create_release
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
with:
target-branch: ${{ github.ref_name }}
token: ${{ secrets.RELEASE_TOKEN }}
skip-github-pull-request: true
- name: Please Release PR
if: steps.create_release.outputs.release_created == false
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
with:
target-branch: ${{ github.ref_name }}
token: ${{ secrets.RELEASE_TOKEN }}
skip-github-release: true