-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 928 Bytes
/
bump.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
name: Create changelog and bump version based on commit history
on: workflow_dispatch
jobs:
setup:
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.matrix.outputs.packages }}
steps:
- uses: actions/checkout@v4
- id: matrix
run: |
echo 'packages=['$(ls packages | sed -r -z -e "s/([a-z]+)\n/\"\1\", /g" -e "s/, $//")']' >> "$GITHUB_OUTPUT"
changelog:
needs: ["setup"]
strategy:
max-parallel: 1
matrix:
package: ${{ fromJSON(needs.setup.outputs.packages) }}
uses: ./.github/workflows/changelog.yml
secrets: inherit
with:
package-name: ${{ matrix.package }}
tags:
needs: ["setup", "changelog"]
strategy:
max-parallel: 1
matrix:
package: ${{ fromJSON(needs.setup.outputs.packages) }}
uses: ./.github/workflows/tag.yml
secrets: inherit
with:
package-name: ${{ matrix.package }}