chore(docs): moved api lang docs into the learn by docs #1796
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Delete Console Preview | |
on: | |
pull_request: | |
types: | |
- closed | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
FLY_VERSION: "0.1.80" | |
APP_NAME: wing-console-pr-${{github.event.number}} | |
jobs: | |
destroy: | |
name: "Destroy" | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && !startsWith(github.head_ref, 'mergify/merge-queue/') }} | |
steps: | |
- name: Install flyctl | |
uses: superfly/flyctl-actions/setup-flyctl@1.5 | |
with: | |
version: ${{env.FLY_VERSION}} | |
- name: Delete preview environment | |
run: | | |
if flyctl status --app "$APP_NAME"; then | |
flyctl apps destroy "$APP_NAME" -y | |
fi |