-
Notifications
You must be signed in to change notification settings - Fork 118
70 lines (65 loc) · 1.68 KB
/
new-version.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: new-version
run-name: building ${{ inputs.projects }}
on:
workflow_dispatch:
inputs:
projects:
description: eg. `foo.com=1.2.3 bar.com^2.3.4`
required: true
type: string
jobs:
build:
strategy:
fail-fast: false
matrix:
platform:
- darwin+x86-64
- linux+x86-64
- darwin+aarch64
- linux+aarch64
uses: ./.github/workflows/build.yml
with:
projects: ${{ inputs.projects }}
platform: ${{ matrix.platform }}
secrets: inherit
bottle:
strategy:
fail-fast: false
matrix:
platform:
- darwin+x86-64
- linux+x86-64
- darwin+aarch64
- linux+aarch64
needs: [build]
uses: ./.github/workflows/bottle.yml
with:
new-version: true
platform: ${{ matrix.platform }}
projects: ${{ inputs.projects }}
secrets: inherit
request-qa:
needs: [bottle]
if: ${{ needs.bottle.outputs.qa-required != '[]' }}
runs-on: ubuntu-latest
strategy:
matrix:
project: ${{ fromJson(needs.bottle.outputs.qa-required) }}
steps:
- uses: teaxyz/pantry/.github/actions/request-qa@main
with:
project: ${{ matrix.project }}
slack-webhook: ${{ secrets.SLACK_QA_WEBHOOK }}
complain:
needs: [build, bottle]
if: failure()
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- uses: teaxyz/pantry/.github/actions/complain@main
with:
projects: ${{ inputs.projects }}
platform: ${{ inputs.platform }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
slack-channel: ${{ secrets.SLACK_CHANNEL }}