Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Creates a GitHub check displaying a Terraform plan

Notifications You must be signed in to change notification settings

TakeScoop/terraform-github-check-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

terraform-github-check-action

Deprecated: Terraform plans can be included in GitHub Actions job summaries.

Creates a GitHub check displaying a Terraform plan.

Usage

jobs:
  terraform:
    runs-on: ubuntu-latest
    steps:
      - uses: TakeScoop/terraform-cloud-workspace-action
        name: Manage Terraform Workspaces
        id: terraform
        with:
          terraform_token: "${{ secrets.TF_TOKEN }}"
          terraform_organization: org 
          apply: "${{ github.event.inputs.apply == 'true' || github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}"
      - uses: TakeScoop/terraform-github-check-action
        name: Create GitHub Check
        with:
          github_token: "${{ secrets.GITHUB_TOKEN }}"
          name: Terraform Cloud Workspace
          plan: "${{ steps.terraform.outputs.plan }}"

Inputs

Name Description Default
github_token GitHub token with permission to post GitHub checks.
name GitHub check name.
plan Human readable Terraform plan.

About

Creates a GitHub check displaying a Terraform plan

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published