-
Notifications
You must be signed in to change notification settings - Fork 74
54 lines (52 loc) · 1.39 KB
/
fixtures_feature.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
name: Build and Package Fixtures for a feature
on:
push:
tags:
- "*@v*"
workflow_dispatch:
jobs:
feature-names:
runs-on: ubuntu-latest
outputs:
names: ${{ steps.feature-name.outputs.names }}
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Get feature names
id: feature-name
shell: bash
run: |
names=$(grep -Po "^${GITHUB_REF_NAME//@*/}[^:]*" .github/configs/feature.yaml | jq --raw-input . | jq -c --slurp .)
echo names=${names}
echo names=${names} >> "$GITHUB_OUTPUT"
build:
runs-on: ubuntu-latest
needs: feature-names
strategy:
matrix:
feature: ${{ fromJSON(needs.feature-names.outputs.names) }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/build-fixtures
with:
release_name: ${{ matrix.feature }}
release:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: .
- name: Draft Pre-release
uses: softprops/action-gh-release@v2
with:
files: "./**"
draft: true
prerelease: true
generate_release_notes: true
fail_on_unmatched_files: true