-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yaml
83 lines (79 loc) · 2.03 KB
/
action.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: symbol-upload
description:
Post symbol files to BugSplat
branding:
icon: 'upload'
color: 'blue'
inputs:
# Either username & password must be provided, or clientId & clientSecret.
username:
description: "BugSplat account username"
type: string
required: false
password:
description: "BugSplat account password"
type: string
required: false
clientId:
description: "OAuth2 Client Credentials Client ID"
type: string
required: false
clientSecret:
description: "OAuth2 Client Credentials Client Secret"
type: string
required: false
database:
description: "BugSplat crash database"
type: string
required: true
application:
description: "Application name"
type: string
required: true
version:
description: "Application version"
type: string
required: true
files:
# npm glob: https://www.npmjs.com/package/glob#glob-primer
description: "Files to upload (glob pattern)"
type: string
required: true
directory:
description: "Base directory for files"
type: string
required: false
node-version:
description: "Node.js version to use"
type: string
required: false
default: '22'
dumpSyms:
description: "Use dumpSyms to generate symbols"
type: boolean
required: false
default: false
runs:
using: composite
steps:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
- name: Install symbol-upload
shell: pwsh
run: npm i -g @bugsplat/symbol-upload
- name: Run symbol-upload
shell: pwsh
run: >-
symbol-upload
-b "${{ inputs.database }}"
-a "${{ inputs.application }}"
-v "${{ inputs.version }}"
-u "${{ inputs.username }}"
-p "${{ inputs.password }}"
-i "${{ inputs.clientId }}"
-s "${{ inputs.clientSecret }}"
-f "${{ inputs.files }}"
-d "${{ inputs.directory }}"
${{ inputs.dumpSyms == 'true' && '-m' || '' }}