Skip to content

Commit 02329aa

Browse files
committed
Cleanup
1 parent b4db32b commit 02329aa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,6 @@ jobs:
176176
deploy-staging:
177177
name: 🚁 Deploy staging app for PR
178178
runs-on: ubuntu-24.04
179-
env:
180-
SENTRY_AUTH_TOKEN: 'bla'
181-
if: ${{ github.event.action != 'closed' && 'bla' }}
182179
outputs:
183180
url: ${{ steps.deploy.outputs.url }}
184181
environment:
@@ -227,7 +224,7 @@ jobs:
227224
--build-secret SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
228225
229226
- name: 🧹 Cleanup resources when PR is closed
230-
if: github.event.action == 'closed'
227+
if: ${{ github.event.action == 'closed' && env.FLY_API_TOKEN }}
231228
run: |
232229
FLY_APP_NAME="${{ steps.app_name.outputs.value }}-pr-${{ github.event.number }}"
233230
flyctl storage destroy epic-stack-$FLY_APP_NAME --yes || true

0 commit comments

Comments
 (0)