Skip to content

Commit 8354324

Browse files
joelguittetfabiobaltieri
authored andcommitted
action: clean zephyr-sdk directory before extraction
Remove existing zephyr-sdk directory before extraction, and the archive after extraction. This is useful for self-hosted runners on which the files/directories remain between executions. Signed-off-by: Joel Guittet <[email protected]>
1 parent 75a224f commit 8354324

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,15 @@ runs:
213213
shell: bash
214214
run: |
215215
wget --progress=dot:giga ${{ inputs.sdk-base }}/v${SDK_VERSION}/${SDK_FILE}
216+
rm -rf zephyr-sdk
216217
if [ "${{ runner.os }}" = "Windows" ]; then
217218
7z x $SDK_FILE
218219
mv zephyr-sdk-${SDK_VERSION} zephyr-sdk
219220
else
220221
mkdir zephyr-sdk
221222
tar xvf $SDK_FILE -C zephyr-sdk --strip-components=1
222223
fi
224+
rm -f $SDK_FILE
223225
224226
- name: Setup Zephyr SDK
225227
working-directory: ${{ inputs.base-path }}/zephyr-sdk

0 commit comments

Comments
 (0)