-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (27 loc) · 979 Bytes
/
Copy pathrelease-please.yml
File metadata and controls
30 lines (27 loc) · 979 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
name: Release Please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
if: github.repository == 'orbcorp/orb-java'
runs-on: runs-on=${{ github.run_id }}/image=ubuntu24-full-x64/runner=2cpu-linux-x64/spot=false/tag=sdk-release-please
steps:
# Token comes from the orb-stlc-automation app rather than a
# RELEASE_PLEASE_TOKEN PAT: no expiry to rotate, and app-created releases
# still trigger the publish and back-sync workflows (GITHUB_TOKEN-created
# events would not).
- name: Mint app token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.STLC_APP_ID }}
private-key: ${{ secrets.STLC_APP_PRIVATE_KEY }}
- uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
id: release
with:
token: ${{ steps.app-token.outputs.token }}