Skip to content

Commit 4f47e4c

Browse files
committed
Extract Codee artifact
1 parent bde6f9a commit 4f47e4c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,15 @@ runs:
4141
shell: bash
4242
run: |
4343
curl -L -o /tmp/codee.${{ steps.mapping.outputs.codee_archive_extension }} https://codee.com/release/codee-2025.3.5-${{ steps.mapping.outputs.codee_archive }}.${{ steps.mapping.outputs.codee_archive_extension }}
44+
45+
- name: Extract Codee artifact
46+
shell: bash
47+
run: |
48+
if [[ "${{ steps.mapping.outputs.codee_archive_extension }} ]]; then
49+
unzip /tmp/codee.zip -d /tmp/codee-tmp
50+
mv /tmp/codee-tmp/* /tmp/codee/
51+
rm -f /tmp/codee-tmp
52+
else
53+
mkdir -p /tmp/codee/
54+
tar --strip-components=1 -xzf /tmp/codee.tar.gz -C /tmp/codee
55+
fi

0 commit comments

Comments
 (0)