File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments