Skip to content

Commit

Permalink
feat(ci): collect shell
Browse files Browse the repository at this point in the history
download shell file and extract debug

n/a
  • Loading branch information
jdre-c8y committed May 31, 2024
1 parent 62b013a commit c7c09b9
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/collect-shell-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,9 @@ jobs:
exit 1
fi
echo "File extracted successfully."
# Locate and extract the cockpit file inside the extracted folder
extracted_folder="apps-${next_version}"
echo "Extracted folder is: $extracted_folder"
# Ensure the extracted folder exists
if [ ! -d "$extracted_folder" ]; then
echo "Extracted folder not found: $extracted_folder"
ls -la # List files to help debug
exit 1
fi
cockpit_file="cockpit-${next_version}.zip"
find "$extracted_folder" -name "$cockpit_file" -exec tar -xzf {} -C "dist/apps" \;
"$cockpit_file" -exec tar -xzf {} -C "dist/apps" \;
if [ $? -ne 0 ]; then
echo "Finding or extracting cockpit file failed!"
exit 1
Expand Down

0 comments on commit c7c09b9

Please sign in to comment.