Sha256: eebbb6ef7a097531cc8481bfc20975c38e1e2c39f5b5a69c25950a8df8dc93c8

Contents?: true

Size: 680 Bytes

Versions: 4

Compression:

Stored size: 680 Bytes

Contents

name: Dispatch Terraspace
on:
  workflow_dispatch:
    inputs:
      env:
        description: "TS_ENV"
        type: choice
        default: prod
        options: # Add more environment if needed
          - dev
          - prod
      command:
        description: "Terraspace command to run"
        default: "plan demo"
jobs:
  run:
    runs-on: ubuntu-latest

    env:
<%= plugin_env_vars(indent: 6) -%>
      GH_TOKEN: ${{ secrets.GH_TOKEN }}
      TS_ENV: ${{ github.event.inputs.env }}
      TS_TOKEN: ${{ secrets.TS_TOKEN }}

    steps:
<%= partial "init_steps.yml" -%>

    - name: Terraspace Command
      run: |
        terraspace ${{ github.event.inputs.command }} -y

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
terraspace_ci_github-0.1.3 lib/template/.github/workflows/workflow_dispatch.yml.tt
terraspace_ci_github-0.1.2 lib/template/.github/workflows/workflow_dispatch.yml.tt
terraspace_ci_github-0.1.1 lib/template/.github/workflows/workflow_dispatch.yml.tt
terraspace_ci_github-0.1.0 lib/template/.github/workflows/workflow_dispatch.yml.tt