|
1 | | -name: "Bool-Matrix Version Test for README" |
| 1 | +name: "Bool-Matrix Version Test" |
2 | 2 | run-name: "BoolMatrix | current: ${{ inputs.current-version }} | type: ${{ inputs.version-type }}" |
| 3 | + |
3 | 4 | on: |
4 | 5 | workflow_dispatch: |
5 | 6 | inputs: |
@@ -44,14 +45,15 @@ jobs: |
44 | 45 | - name: Save Result to File |
45 | 46 | run: | |
46 | 47 | mkdir -p results |
47 | | - FILE="results/result-${{ matrix.preversion }}-${{ matrix.preversion-start-zero }}-${{ matrix.use-build }}-${{ matrix.prefix }}.txt" |
| 48 | + FILE="results/result-pre${{ matrix.preversion }}-zero${{ matrix.preversion-start-zero }}-build${{ matrix.use-build }}-prefix${{ matrix.prefix }}.txt" |
48 | 49 |
|
49 | 50 | echo "current-version: ${{ inputs.current-version }}" >> $FILE |
50 | 51 | echo "version-type: ${{ inputs.version-type }}" >> $FILE |
51 | 52 | echo "preversion: ${{ matrix.preversion }}" >> $FILE |
52 | 53 | echo "preversion-start-zero: ${{ matrix.preversion-start-zero }}" >> $FILE |
53 | 54 | echo "use-build: ${{ matrix.use-build }}" >> $FILE |
54 | 55 | echo "prefix: ${{ matrix.prefix }}" >> $FILE |
| 56 | +
|
55 | 57 | if [ -z "${{ steps.bump.outputs.next-version }}" ]; then |
56 | 58 | echo "result: ERROR (no output)" >> $FILE |
57 | 59 | echo "status: ❌" >> $FILE |
|
63 | 65 | - name: Upload Result Artifact |
64 | 66 | uses: actions/upload-artifact@v4 |
65 | 67 | with: |
66 | | - name: bool-matrix-results |
| 68 | + name: bool-result-pre${{ matrix.preversion }}-zero${{ matrix.preversion-start-zero }}-build${{ matrix.use-build }}-prefix${{ matrix.prefix }} |
67 | 69 | path: results |
68 | 70 |
|
69 | 71 | summary: |
|
75 | 77 | - name: Lade Resultate |
76 | 78 | uses: actions/download-artifact@v4 |
77 | 79 | with: |
78 | | - name: bool-matrix-results |
79 | 80 | path: results |
80 | 81 |
|
81 | 82 | - name: Ausgabe Tabelle |
|
85 | 86 | echo "| current-version | version-type | preversion | preversion-start-zero | use-build | prefix | Result | Status |" >> $GITHUB_STEP_SUMMARY |
86 | 87 | echo "|-----------------|--------------|------------|------------------------|-----------|--------|--------|--------|" >> $GITHUB_STEP_SUMMARY |
87 | 88 |
|
88 | | - for f in results/*.txt; do |
| 89 | + for f in results/**/*.txt; do |
89 | 90 | current=$(grep '^current-version:' "$f" | cut -d: -f2- | xargs) |
90 | 91 | type=$(grep '^version-type:' "$f" | cut -d: -f2- | xargs) |
91 | 92 | pre=$(grep '^preversion:' "$f" | cut -d: -f2- | xargs) |
|
0 commit comments