Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

Release Workflow: Fix workflow edge case (#8792)

Lincoln Stein5fc950b745cb
diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml
index c887530f8a..36bc8903b4 100644
--- a/.github/workflows/build-container.yml
+++ b/.github/workflows/build-container.yml
@@ -53,8 +53,10 @@ jobs:
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- sudo swapoff /mnt/swapfile
- sudo rm -rf /mnt/swapfile
+ if [ -f /mnt/swapfile ]; then
+ sudo swapoff /mnt/swapfile
+ sudo rm -rf /mnt/swapfile
+ fi
if [ -d /mnt ]; then
sudo chmod -R 777 /mnt
echo '{"data-root": "/mnt/docker-root"}' | sudo tee /etc/docker/daemon.json
diff --git a/.github/workflows/typegen-checks.yml b/.github/workflows/typegen-checks.yml
index 865718a2b0..28bcbf778e 100644
--- a/.github/workflows/typegen-checks.yml
+++ b/.github/workflows/typegen-checks.yml
@@ -46,8 +46,10 @@ jobs:
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- sudo swapoff /mnt/swapfile
- sudo rm -rf /mnt/swapfile
+ if [ -f /mnt/swapfile ]; then
+ sudo swapoff /mnt/swapfile
+ sudo rm -rf /mnt/swapfile
+ fi
echo "----- Free space after cleanup"
df -h