Skip to content

provisioning environment #1

provisioning environment

provisioning environment #1

name: Destroy branch environment
# only trigger on pull request closed events
on:
pull_request:
types: [ closed ]
jobs:
destroy-branch-environment:
steps:

Check failure on line 10 in .github/workflows/destroy-branch-environment.yaml

View workflow run for this annotation

GitHub Actions / Destroy branch environment

Invalid workflow file

The workflow is not valid. .github/workflows/destroy-branch-environment.yaml (Line: 10, Col: 4): Required property is missing: runs-on
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: Login to Octopus 🐙
uses: OctopusDeploy/login@v1
with:
server: https://michrich.octopus.app
service_account_id: 1269d528-af54-4ab9-8a4b-902ac894a865
- name: Deprovision branch environment 🐙
id: deprovision-branch-environment
uses: OctopusDeploy/run-runbook-action@v3
with:
project: 'SHIPPED23'
runbook: 'Destroy branch environment'
variables: |
Branch:${{needs.build-and-push-image.outputs.branch}}
environments: |
${{steps.branch-name.outputs.current_branch}}
- name: Wait for environment to deprovision 🐙
uses: OctopusDeploy/await-task-action@v3
with:
server_task_id: ${{ fromJson(steps.deprovision-branch-environment.outputs.server_tasks)[0].serverTaskId }}