Skip to content

Commit 565a68c

Browse files
committed
Rewrite tofu-format-and-validate workflow
1 parent 7271b79 commit 565a68c

File tree

2 files changed

+24
-48
lines changed

2 files changed

+24
-48
lines changed

.github/workflows/tf-tofu-format-and-validate.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: tofu-format-and-validate
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- 'terraform/**'
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- 'terraform/**'
13+
14+
env:
15+
TENV_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
17+
jobs:
18+
format-and-validate:
19+
runs-on: codebuild-cdap-${{github.run_id}}-${{github.run_attempt}}
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2
23+
- uses: cmsgov/cdap/actions/setup-tenv@8343fb96563ce4b74c4dececee9b268f42bd4a40
24+
- run: scripts/tofu-format-and-validate-diff

0 commit comments

Comments
 (0)