egirlskey/.github/workflows/pr-preview-destroy.yml

22 lines
474 B
YAML
Raw Normal View History

2022-06-08 15:50:23 +00:00
# file: .github/workflows/preview-closed.yaml
on:
pull_request:
types:
- closed
name: Destroy preview environment
jobs:
destroy-preview-environment:
runs-on: ubuntu-latest
steps:
- name: Context
uses: okteto/context@latest
with:
token: ${{ secrets.OKTETO_TOKEN }}
- name: Destroy preview environment
uses: okteto/destroy-preview@latest
with:
2022-06-08 16:48:00 +00:00
name: pr-${{ github.event.number }}-syuilo