Files
homelab-v/.github/workflows/tofu-format.yaml
T
2025-07-19 19:02:39 +02:00

35 lines
690 B
YAML

name: Tofu format
on:
workflow_dispatch: { }
push:
branches: [ '**', '!renovate/**' ]
paths:
- '**.tf'
- '**.tofu'
- '**.tfvars'
- '**.tftpl'
pull_request:
types: [ opened, synchronize ]
branches: [ '**' ]
paths:
- '**.tf'
- '**.tofu'
- '**.tfvars'
- '**.tftpl'
jobs:
tofu-format:
name: run tofu format
runs-on: ubuntu-latest
container: ghcr.io/vehagn/homelab-devcontainer
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Tofu format
run: tofu fmt -recursive -diff -check