Skip to content

Commit

Permalink
added destroy pr preview workflow (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasfr authored Dec 4, 2024
1 parent a303a3f commit 2d86ff0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/destroy-pr-preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Destroy PR Preview

concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

on:
pull_request:
types: [closed]

jobs:
destroy-pr-preview:
name: "Destroying preview deployment for PR#${{ github.event.number }}"
runs-on: ubuntu-latest
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
steps:
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl apps destroy "f42-memory-game-pr-${{ github.event.number }}" --yes || true

0 comments on commit 2d86ff0

Please sign in to comment.