--- name: tofu plan k8s-wheatley on: workflow_dispatch: workflow_call: pull_request: branches: - main # paths: # - pve01.wheatley.in/k8s-wheatley/** env: TOFU_DIR: pve01.wheatley.in/k8s-wheatley jobs: tofu-plan-k8s-wheatley: runs-on: docker steps: - uses: actions/checkout@v4 - uses: opentofu/setup-opentofu@v1 - name: OpenTofu fmt id: fmt run: tofu fmt -check working-directory: ${{ env.TOFU_DIR }} continue-on-error: true - name: OpenTofu Init id: init run: tofu init working-directory: ${{ env.TOFU_DIR }} - name: OpenTofu Validate id: validate run: tofu validate -no-color working-directory: ${{ env.TOFU_DIR }} - name: OpenTofu Plan id: plan run: tofu plan -no-color working-directory: ${{ env.TOFU_DIR }} continue-on-error: true