File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,12 +63,10 @@ jobs:
6363 # Clean up old versions - delete only the oldest version, one created and one destroyed
6464 - name : Clean up oldest version
6565 run : |
66- OLDEST_VERSION=$(gcloud app versions list --service=ocotillo-api --project=${{ secrets.GCP_PROJECT_ID }}
67- --format="value(id)" --sort-by="version.createTime" | head -n 1)
66+ OLDEST_VERSION=$(gcloud app versions list --service=ocotillo-api --project=${{ secrets.GCP_PROJECT_ID }} --format="value(id)" --sort-by="version.createTime" | head -n 1)
6867 if [ ! -z "$OLDEST_VERSION" ]; then
6968 echo "Deleting oldest version: $OLDEST_VERSION"
70- gcloud app versions delete $OLDEST_VERSION --service=ocotillo-api --project=${{ secrets.GCP_PROJECT_ID }}
71- --quiet
69+ gcloud app versions delete $OLDEST_VERSION --service=ocotillo-api --project=${{ secrets.GCP_PROJECT_ID }} --quiet
7270 echo "Deleted oldest version: $OLDEST_VERSION"
7371 else
7472 echo "No versions to delete"
You can’t perform that action at this time.
0 commit comments