Skip to content

Instantly share code, notes, and snippets.

@shar1z
Created December 8, 2022 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shar1z/7f67b8d130d1e4a525f80d987e6cb7a2 to your computer and use it in GitHub Desktop.
Save shar1z/7f67b8d130d1e4a525f80d987e6cb7a2 to your computer and use it in GitHub Desktop.
chatgpt Github Actions
name: Terraform
on: [push]
jobs:
terraform:
name: Apply Terraform
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Apply Terraform
uses: hashicorp/terraform-github-actions@v0.12.x
with:
tf_actions_version: 0.12.29
tf_actions_subcommand: apply
tf_actions_working_dir: .
- name: Send Slack notification
uses: shivammathur/slack-notify-action@v1
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
message: Terraform apply complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment