mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
35 lines
690 B
YAML
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
|