The issue is introduced due the failing Rename Image step. Because, if the build fails there is no according image to rename, which results in an empty IMAGEenvironment variable. This leads to an incorrect renamed log file and
also duplicates failing steps which should not executed if build fails.
Therefor changing the order of steps, triggers and naming of log file.
As seen in this example run: https://github.com/mainsail-crew/MainsailOS/actions/runs/8959578689 , an error occurs during the phase to upload the build log.
The issue is introduced due the failing Rename Image step. Because, if the build fails there is no according image to rename, which results in an empty
IMAGE
environment variable. This leads to an incorrect renamed log file and also duplicates failing steps which should not executed if build fails.Therefor changing the order of steps, triggers and naming of log file.