Skip to content

Commit 9f577b5

Browse files
committed
GH Actions: cleanup artifacts if previous job did not fail or was not cancelled
1 parent 1833df1 commit 9f577b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/aws-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ jobs:
286286
runs-on: ubuntu-latest
287287
# only remove the image artifacts if the build was successful
288288
# (this allows a re-build of failed jobs until for the time of the retention period)
289-
if: success()
289+
if: always() && !failure() && !cancelled()
290290
needs: push
291291
steps:
292292
- uses: geekyeggo/delete-artifact@v5

0 commit comments

Comments
 (0)