-
Notifications
You must be signed in to change notification settings - Fork 21
45 lines (38 loc) · 1.36 KB
/
release-please.yml
File metadata and controls
45 lines (38 loc) · 1.36 KB
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
35
36
37
38
39
40
41
42
43
44
45
name: Release Please
on:
push:
branches:
- main
permissions: {}
jobs:
release-please:
permissions:
contents: write
pull-requests: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Retrieve release app credentials
id: get-secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@a37de51f3d713a30a9e4b21bcdfbd38170020593 # get-vault-secrets/v1.3.0
with:
repo_secrets: |
GITHUB_APP_ID=github-app:app-id
GITHUB_APP_INSTALLATION_ID=github-app:app-installation-id
GITHUB_APP_PRIVATE_KEY=github-app:private-key
- name: Get repository name
env:
REPOSITORY: ${{ github.repository }}
id: info
run: echo "repository_name=${REPOSITORY#*/}" >> "$GITHUB_OUTPUT"
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
with:
app-id: ${{ env.GITHUB_APP_ID }}
private-key: ${{ env.GITHUB_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: ${{ steps.info.outputs.repository_name }}
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
with:
token: ${{ steps.generate-token.outputs.token }}