Skip to content

trigger destroy workflow via 'destroy' label #1

trigger destroy workflow via 'destroy' label

trigger destroy workflow via 'destroy' label #1

Workflow file for this run

---
name: Destroy Dev Deployment
on:
pull_request:
types: [labeled]
env:
TERRAFORM_CLOUD_TOKENS: app.terraform.io=${{ secrets.TERRAFORM_API_TOKEN }}
ORGANIZATION: science-and-design
PROJECT: Hush Line Dev
jobs:
deploy:
if: ${{ github.event.label.name == 'destroy' }}
runs-on: ubuntu-latest
steps:
- name: checkout terraform
uses: actions/checkout@v4
with:
repository: 'scidsg/hushline-infra'
ref: dev-deploy
token: ${{ secrets.HUSHLINE_INFRA_TOKEN }}
- name: destroy worspace
uses: dflook/terraform-destroy-workspace@v1.43.0
with:
path: terraform/dev
workspace: dev-${{ github.head_ref }}
- name: remove labels
uses: actions-ecosystem/action-remove-labels@v1.3.0

Check failure on line 32 in .github/workflows/dev_destroy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dev_destroy.yml

Invalid workflow file

You have an error in your yaml syntax on line 32
with:
github_token: ${{ github.token }}
labels: |
deploy
destroy