Destroy state and delete workspace after deleting feature branch #41
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: Destroy state and delete workspace after deleting feature branch | |
on: [delete] | |
jobs: | |
build: | |
if: contains(github.ref_type, 'branch') && (! contains(github.ref, 'master')) && (! contains(github.ref, 'develop')) | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Destroy state and delete workspace | |
run: docker compose -f docker/terraform/docker-compose.yml run --entrypoint delete_workspace --rm terraform github.ref |