-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (61 loc) · 1.73 KB
/
releaser.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
62
63
64
65
name: releaser
on:
workflow_call:
inputs:
PRIMUS_REF:
description: 'The primus ref to checkout.'
required: true
default: 'main'
type: string
PROJECT_NAME:
description: 'The name of the project to release.'
required: true
default: 'signoz'
type: string
RELEASE_TYPE:
description: 'The type of release to create.'
required: true
default: 'minor'
type: string
defaults:
run:
shell: bash
env:
PRIMUS_HOME: .primus
MAKE: make --no-print-directory --makefile=.primus/src/make/main.mk
jobs:
signoz:
runs-on: ubuntu-latest
permissions:
contents: 'write'
id-token: 'write'
pull-requests: 'write'
steps:
- name: self-checkout
uses: actions/checkout@v4
- id: token
name: github-token-gen
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.PRIMUS_APP_ID }}
private-key: ${{ secrets.PRIMUS_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: primus-checkout
uses: actions/checkout@v4
with:
repository: signoz/primus
ref: ${{ inputs.PRIMUS_REF }}
path: .primus
token: ${{ steps.token.outputs.token }}
- name: git-configure
run: |
git config --global user.name "primus-bot[bot]"
git config --global user.email "171087277+primus-bot[bot]@users.noreply.github.com"
- name: info
run: |
$MAKE info
- name: releaser
env:
GH_TOKEN: ${{ steps.token.outputs.token }}
run: |
$MAKE releaser RELEASER_ARGS="-p ${{ inputs.PROJECT_NAME }} -t ${{ inputs.RELEASE_TYPE }}"