-
Notifications
You must be signed in to change notification settings - Fork 121
47 lines (44 loc) · 1.07 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
name: build pkg version
run-name: building ${{ inputs.projects }}
on:
workflow_call:
inputs:
projects:
description: eg. `foo.com=1.2.3 bar.com^2.3.4`
required: true
type: string
complain:
type: boolean
default: false
workflow_dispatch:
inputs:
projects:
description: eg. `foo.com=1.2.3 bar.com^2.3.4`
required: true
type: string
complain:
type: boolean
default: true
jobs:
ingest:
runs-on: ubuntu-latest
outputs:
pkgs: ${{ steps.divide.outputs.pkgs }}
steps:
- run: |
var="$(echo -n ${{ inputs.projects }} | jq -R -s -c 'split(" ")')"
echo "pkgs=$var" >> $GITHUB_OUTPUT
id: divide
pkg:
needs: ingest
strategy:
fail-fast: false
matrix:
pkg: ${{ fromJSON(needs.ingest.outputs.pkgs) }}
uses: ./.github/workflows/pkg.yml
permissions:
issues: write
with:
pkg: ${{ matrix.pkg }}
complain: ${{ github.event_name == 'workflow_call' || inputs.complain }}
secrets: inherit