-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (59 loc) · 2.06 KB
/
release-please.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
name: Release Please
on:
workflow_call:
inputs:
config-file:
type: string
description: path to the release-please config in the repository
default: release-please-config.json
manifest-file:
type: string
description: path to the release-please versions manifest
default: .release-please-manifest.json
secrets:
STATNETT_BOT_APP_ID:
required: true
STATNETT_BOT_PRIVATE_KEY:
required: true
outputs:
release_created:
description: true if the release was created, false otherwise
value: ${{ jobs.release-please.outputs.release_created }}
major:
description: Number representing major semver value
value: ${{ jobs.release-please.outputs.major }}
minor:
description: Number representing minor semver value
value: ${{ jobs.release-please.outputs.minor }}
patch:
description: Number representing patch semver value
value: ${{ jobs.release-please.outputs.patch }}
sha:
description: sha that a GitHub release was tagged at
value: ${{ jobs.release-please.outputs.sha }}
permissions: {}
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
release_created: ${{ steps.release.outputs.release_created }}
major: ${{ steps.release.outputs.major }}
minor: ${{ steps.release.outputs.minor }}
patch: ${{ steps.release.outputs.patch }}
sha: ${{ steps.release.outputs.sha }}
steps:
- id: token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{ secrets.STATNETT_BOT_APP_ID }}
private_key: ${{ secrets.STATNETT_BOT_PRIVATE_KEY }}
- id: release
uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3
with:
config-file: ${{ inputs.config-file }}
manifest-file: ${{ inputs.manifest-file }}
token: ${{ steps.token.outputs.token }}