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

23 lines
549 B
YAML
Raw Normal View History

2022-06-08 18:50:23 +03:00
# file: .github/workflows/preview-closed.yaml
on:
pull_request:
types:
- closed
name: Destroy preview environment
jobs:
destroy-preview-environment:
runs-on: ubuntu-latest
if: github.repository == github.event.pull_request.head.repo.full_name
2022-06-08 18:50:23 +03:00
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 19:48:00 +03:00
name: pr-${{ github.event.number }}-syuilo