We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4db32b commit 02329aaCopy full SHA for 02329aa
1 file changed
.github/workflows/deploy.yml
@@ -176,9 +176,6 @@ jobs:
176
deploy-staging:
177
name: 🚁 Deploy staging app for PR
178
runs-on: ubuntu-24.04
179
- env:
180
- SENTRY_AUTH_TOKEN: 'bla'
181
- if: ${{ github.event.action != 'closed' && 'bla' }}
182
outputs:
183
url: ${{ steps.deploy.outputs.url }}
184
environment:
@@ -227,7 +224,7 @@ jobs:
227
224
--build-secret SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
228
225
229
226
- name: 🧹 Cleanup resources when PR is closed
230
- if: github.event.action == 'closed'
+ if: ${{ github.event.action == 'closed' && env.FLY_API_TOKEN }}
231
run: |
232
FLY_APP_NAME="${{ steps.app_name.outputs.value }}-pr-${{ github.event.number }}"
233
flyctl storage destroy epic-stack-$FLY_APP_NAME --yes || true
0 commit comments