.github/workflow-templates/ci-terraform.yml

23 lines
686 B
YAML

name: Terraform CI
on:
pull_request:
branches: [main, hotfix/**, release/**]
merge_group:
push:
branches: [hotfix/**, release/**]
permissions:
contents: read
jobs:
select-runner:
# Picks GitHub-hosted while Actions is operational, the org self-hosted
# runner otherwise. See callable-select-runner.yaml for the policy.
uses: Sea-Haven-Industries/.github/.github/workflows/callable-select-runner.yaml@REPLACE-ME # vX.Y.Z
terraform:
needs: select-runner
uses: Sea-Haven-Industries/.github/.github/workflows/ci-terraform.yaml@REPLACE-ME # vX.Y.Z
with:
runner: ${{ needs.select-runner.outputs.runner }}
terraform-version: "1.16.0"