-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.37 KB
/
build.yml
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: Build
run-name: "Branch Build (${{ github.run_attempt }}.${{ github.run_number }}) - ${{ github.ref_name }}"
on:
workflow_dispatch:
inputs:
amalgam-build:
description: |
(Optional) Amalgam build or version number. Defaults to pinned release.
Examples:
'6807310618',
'https://github.com/howsoai/amalgam/actions/runs/6807310618',
'57.0.1'
required: false
type: string
workflow_call:
inputs:
build-type:
required: false
type: string
optional-release-tag:
required: false
type: string
defaults:
run:
shell: bash
jobs:
metadata:
uses: howsoai/.github/.github/workflows/set-metadata.yml@main
secrets: inherit
with:
build-type: ${{ inputs.build-type }}
optional-release-tag: ${{ inputs.optional-release-tag }}
amalgam-build: ${{ inputs.amalgam-build }}
npm-test:
needs:
- metadata
uses: howsoai/.github/.github/workflows/npm-test.yml@main
secrets: inherit
with:
upstream-details: ${{ needs.metadata.outputs.upstream-details }}
release:
needs:
- metadata
- npm-test
if: inputs.build-type == 'release'
uses: howsoai/.github/.github/workflows/npm-release-open-source.yml@main
secrets: inherit
with:
version: ${{ needs.metadata.outputs.version }}