Skip to content

Commit 2e04d34

Browse files
authored
fix(build): fix log file upload (mainsail-crew#297)
* fix(build): change step order Signed-off-by: Stephan Wendel <me@stephanwe.de> * chore(build): fix syntax * Set order to previous locations Signed-off-by: Stephan Wendel <me@stephanwe.de> * test: add failing build for test Will be removed after testing, due revert Signed-off-by: Stephan Wendel <me@stephanwe.de> * fix: fix log file naming Signed-off-by: Stephan Wendel <me@stephanwe.de> * Revert "test: add failing build for test" This reverts commit 2829fe2. --------- Signed-off-by: Stephan Wendel <me@stephanwe.de>
1 parent a7e6d4e commit 2e04d34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/BuildImages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767

6868
- name: Rename image file
6969
id: move-image
70-
if: always()
70+
if: ${{ success() }}
7171
shell: bash
7272
run: |
7373
source repository/src/config
@@ -79,10 +79,10 @@ jobs:
7979
echo "image=${IMAGE}" >> $GITHUB_OUTPUT
8080
8181
- name: Upload failed Logfile
82-
if: failure()
82+
if: ${{ failure() && steps.build.conclusion == 'failure' }}
8383
uses: actions/upload-artifact@v4
8484
with:
85-
name: failed-${{ steps.move-image.outputs.image }}.log
85+
name: failed-${{ steps.build.outputs.type }}-${{ steps.build.outputs.sbc }}.log
8686
path: repository/src/build.log
8787

8888
- name: Compressing Image

0 commit comments

Comments
 (0)