Skip to content

added function workflow & files #8

added function workflow & files

added function workflow & files #8

Workflow file for this run

name: github-actions
on:
pull_request:
branches:
- 'main'
env:
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
jobs:
apply:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
- name: Initialize Terraform
run: terraform init
- name: Format
run: terraform fmt
- name: Validate
run: terraform validate
- name: Plan
if: github.event_name == 'pull_request'
run: terraform plan
- name: Apply
run: terraform apply -auto-approve