Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dhairya-quash authored Nov 19, 2024
1 parent c7b4f69 commit 5af4e1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
# Step 10: Clean Older Revisions
- name: Cleanup older revisions
run: |
SERVICE_NAME=${{env.SERVICE_NAME}}-${{ github.event.inputs.environment }}
SERVICE_NAME=${{env.SERVICE_NAME}}
REGION=${{ env.REGION }}
# List all revisions, sorted by creation timestamp in descending order
Expand All @@ -104,7 +104,7 @@ jobs:
--region=$REGION \
--format="value(METADATA.name)" \
--sort-by=~CREATED_AT \
| tail -n +4 \
| tail -n +6 \
| xargs -I {} gcloud run revisions delete {} \
--region=$REGION --quiet
Expand Down

0 comments on commit 5af4e1b

Please sign in to comment.