[CONAN] use always() and step conclusion

This commit is contained in:
Nicholas Dudfield
2025-03-25 21:03:12 +07:00
parent 3f98c15910
commit 19111a3739
2 changed files with 4 additions and 4 deletions

View File

@@ -166,8 +166,8 @@ jobs:
# Reference the primary key from the restore step
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}
- name: Save ccache with run_id fallback in case of lock contention
if: steps.save-ccache.conclusion != 'success'
- name: Save ccache with fallback in case of lock contention
if: always() && steps.save-ccache.outcome != 'success'
uses: actions/cache/save@v4
with:
path: ~/.ccache

View File

@@ -163,8 +163,8 @@ jobs:
# Reference the primary key from the restore step
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}
- name: Save ccache with run_id fallback in case of lock contention
if: steps.save-ccache.conclusion != 'success'
- name: Save ccache with fallback in case of lock contention
if: always() && steps.save-ccache.outcome != 'success'
uses: actions/cache/save@v4
with:
path: ~/.ccache