[experiment] start preview env on comment #13
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
# file: .github/workflows/preview-closed.yaml | |
on: | |
pull_request: | |
types: | |
- closed | |
jobs: | |
closed: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Context | |
uses: okteto/context@latest | |
with: | |
url: ${{secrets.OKTETO_URL}} | |
token: ${{ secrets.OKTETO_TOKEN }} | |
- name: Destroy preview environment | |
uses: okteto/destroy-preview@latest | |
with: | |
name: oktaco-pr-${{ github.event.number }} |