Skip to content

Commit ea6e658

Browse files
fix: CI lockfile handling
1 parent 463ae59 commit ea6e658

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
echo "--- Preflight summary: ${REASONS[*]:-OK} ---"
128128
- name: Release cache lock
129129
if: always()
130-
run: rmdir /tmp/rust-cache.lock
130+
run: rmdir /tmp/rust-cache.lock || true
131131
- name: Acquire AWS credentials
132132
uses: aws-actions/configure-aws-credentials@v4
133133
with:
@@ -168,7 +168,7 @@ jobs:
168168
touch /tmp/rust-cache/.ready
169169
- name: Release cache lock
170170
if: always()
171-
run: rmdir /tmp/rust-cache.lock
171+
run: rmdir /tmp/rust-cache.lock || true
172172
#- name: Run cargo-deny to check licenses
173173
# uses: EmbarkStudios/cargo-deny-action@v1
174174
# with:
@@ -427,7 +427,7 @@ jobs:
427427
echo "--- Preflight summary: ${REASONS[*]:-OK} ---"
428428
- name: Release cache lock
429429
if: always()
430-
run: rmdir /tmp/rust-cache.lock
430+
run: rmdir /tmp/rust-cache.lock || true
431431
- name: Get current commit SHA
432432
id: get_sha
433433
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
@@ -492,7 +492,7 @@ jobs:
492492
touch /tmp/rust-cache/.ready
493493
- name: Release cache lock
494494
if: always()
495-
run: rmdir /tmp/rust-cache.lock
495+
run: rmdir /tmp/rust-cache.lock || true
496496
- name: Rename artifact
497497
run: |
498498
cp ./partner-chains-demo-node partner-chains-node-${{ steps.get_sha.outputs.sha }}-x86_64-linux
@@ -682,7 +682,7 @@ jobs:
682682
run: |
683683
until mkdir /tmp/rust-cache.lock 2>/dev/null; do sleep 2; done
684684
rm -rf /tmp/rust-cache/
685-
rmdir /tmp/rust-cache.lock || true
685+
rmdir /tmp/rust-cache.lock || true || true
686686
- name: Acquire cache lock
687687
run: |
688688
until mkdir /tmp/rust-cache.lock 2>/dev/null; do
@@ -769,7 +769,7 @@ jobs:
769769
echo "--- Preflight summary: ${REASONS[*]:-OK} ---"
770770
- name: Release cache lock
771771
if: always()
772-
run: rmdir /tmp/rust-cache.lock
772+
run: rmdir /tmp/rust-cache.lock || true
773773
- name: Acquire AWS credentials
774774
uses: aws-actions/configure-aws-credentials@v4
775775
with:
@@ -810,7 +810,7 @@ jobs:
810810
touch /tmp/rust-cache/.ready
811811
- name: Release cache lock
812812
if: always()
813-
run: rmdir /tmp/rust-cache.lock
813+
run: rmdir /tmp/rust-cache.lock || true
814814
#- name: Run cargo-deny to check licenses
815815
# uses: EmbarkStudios/cargo-deny-action@v1
816816
# with:

0 commit comments

Comments
 (0)