Skip to content

Commit

Permalink
build only on main and PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
cultivator[bot] committed Jul 4, 2023
1 parent 5fd9193 commit d18994e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: Build
on:
'on':
pull_request:
push:
jobs:
Expand All @@ -14,12 +15,12 @@ jobs:
with:
submodules: recursive
- name: Download Terraform
run: ./scripts/download_terraform.sh $TERRAFORM_VERSION
run: "./scripts/download_terraform.sh $TERRAFORM_VERSION"
- name: Check format
run: ~/tfbin/terraform fmt -write=false -diff=true -check
run: "~/tfbin/terraform fmt -write=false -diff=true -check"
- name: Post to hook-exporter
run: ./.github/exporter.sh
run: "./.github/exporter.sh"
env:
EXPORTER_TOKEN: ${{ secrets.EXPORTER_TOKEN }}
JOB_STATUS: ${{ job.status }}
if: ${{ always() }}
EXPORTER_TOKEN: "${{ secrets.EXPORTER_TOKEN }}"
JOB_STATUS: "${{ job.status }}"
if: "${{ always() }}"

0 comments on commit d18994e

Please sign in to comment.