Skip to content

DRAFT: dev-plan workflow #3

DRAFT: dev-plan workflow

DRAFT: dev-plan workflow #3

Workflow file for this run

---
name: Create Dev Deployment
on:
pull_request:
types: [labeled]
env:
TF_API_TOKEN: "${{ secrets.TERRAFORM_API_TOKEN }}"
ORGANIZATION: science-and-design
PROJECT: Hush Line
WORKSPACE: hushline-${{ github.head_ref }}
jobs:
deploy:
if: ${{ github.event.label.name == 'dev-deploy' }}
runs-on: ubuntu-latest
steps:
- name: checkout terraform
uses: actions/checkout@v4
with:
repository: 'scidsg/hushline-infra'
token: ${{ secrets.HUSHLINE_INFRA_TOKEN }}
- name: Use branch workspace
uses: dflook/terraform-new-workspace@v1.43.0
with:
path: terraform
workspace: dev-${{ github.head_ref }}
- name: Plan test infrastrucutre
uses: dflook/terraform-plan@v1.43.0
with:
path: terraform
workspace: dev-${{ github.head_ref }}