-
Notifications
You must be signed in to change notification settings - Fork 29
55 lines (50 loc) · 1.73 KB
/
release-please-prerelease.yaml
File metadata and controls
55 lines (50 loc) · 1.73 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
46
47
48
49
50
51
52
53
54
55
---
name: Release (pre-release-please)
on:
workflow_dispatch:
inputs:
prerelease_type:
description: "Prerelease identifier"
required: true
default: "beta"
type: choice
options:
- alpha
- beta
- rc
target_branch:
description: "Branch to run release-please against"
required: false
default: "main"
type: string
permissions:
contents: write
pull-requests: write
jobs:
release-please-prerelease:
runs-on: ubuntu-latest
steps:
- name: Run release-please (alpha)
if: ${{ github.event.inputs.prerelease_type == 'alpha' }}
uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.VATSCA_BOT_TOKEN }}
target-branch: ${{ github.event.inputs.target_branch }}
config-file: .github/release-please/release-please-config-alpha.json
versioning-strategy: prerelease
- name: Run release-please (beta)
if: ${{ github.event.inputs.prerelease_type == 'beta' }}
uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.VATSCA_BOT_TOKEN }}
target-branch: ${{ github.event.inputs.target_branch }}
config-file: .github/release-please/release-please-config-beta.json
versioning-strategy: prerelease
- name: Run release-please (rc)
if: ${{ github.event.inputs.prerelease_type == 'rc' }}
uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.VATSCA_BOT_TOKEN }}
target-branch: ${{ github.event.inputs.target_branch }}
config-file: .github/release-please/release-please-config-rc.json
versioning-strategy: prerelease