Skip to content

build only on main and PRs #28

build only on main and PRs

build only on main and PRs #28

Workflow file for this run

---
name: Build
'on':
pull_request:
push:
jobs:
build:
name: Build
runs-on: ubuntu-22.04
env:
TERRAFORM_VERSION: 1.2.7
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Download Terraform
run: "./scripts/download_terraform.sh $TERRAFORM_VERSION"
- name: Check format
run: "~/tfbin/terraform fmt -write=false -diff=true -check"
- name: Post to hook-exporter
run: "./.github/exporter.sh"
env:
EXPORTER_TOKEN: "${{ secrets.EXPORTER_TOKEN }}"
JOB_STATUS: "${{ job.status }}"
if: "${{ always() }}"