Add always() where needed

This commit is contained in:
Ayaz Salikhov
2022-07-04 20:46:30 +04:00
parent ad4670b171
commit febc1ff7a1
2 changed files with 3 additions and 2 deletions

View File

@@ -25,5 +25,6 @@ runs:
docker image ls -a
shell: bash
- name: Delete the file 🗑️
run: rm /tmp/${{ inputs.image }}-${{ inputs.platform }}.tar
run: rm -f /tmp/${{ inputs.image }}-${{ inputs.platform }}.tar
shell: bash
if: always()

View File

@@ -69,7 +69,7 @@ jobs:
# Self-hosted runners share a state (whole VM) between runs
- name: Cleanup built artifacts 🗑️
run: |
rm /tmp/${{ inputs.image }}-${{ inputs.platform }}.tar
rm -f /tmp/${{ inputs.image }}-${{ inputs.platform }}.tar
docker system prune --all --force
shell: bash
if: always()