|
22 | 22 | uses: hashicorp/setup-terraform@v1
|
23 | 23 | # cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
|
24 | 24 |
|
25 |
| -# TODO: This step duplicates work done by the Makefile. |
26 |
| -# - name: check terraform formatting |
27 |
| -# id: fmt |
28 |
| -# run: | |
29 |
| -# terraform fmt -check -recursive |
30 |
| - |
31 | 25 | - name: run make
|
32 | 26 | # env:
|
33 | 27 | # TOKEN: ${{ secrets.TOKEN }}
|
34 | 28 | run: |
|
35 | 29 | make all
|
36 |
| -
|
37 |
| -# - name: terraform init |
38 |
| -# id: init |
39 |
| -# run: terraform init |
40 |
| -# |
41 |
| -# - name: terraform plan |
42 |
| -# id: plan |
43 |
| -# if: github.event_name == 'pull_request' |
44 |
| -# run: terraform plan -no-color |
45 |
| -# continue-on-error: true |
46 |
| -# |
47 |
| -# - uses: actions/github-script@0.9.0 |
48 |
| -# if: github.event_name == 'pull_request' |
49 |
| -# env: |
50 |
| -# PLAN: "terraform\n${{ steps.plan.outputs.stdout }}" |
51 |
| -# with: |
52 |
| -# github-token: ${{ secrets.GITHUB_TOKEN }} |
53 |
| -# script: | |
54 |
| -# const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\` |
55 |
| -# #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\` |
56 |
| -# #### Terraform Plan 📖\`${{ steps.plan.outcome }}\` |
57 |
| -# |
58 |
| -# <details><summary>Show Plan</summary> |
59 |
| -# |
60 |
| -# \`\`\`${process.env.PLAN}\`\`\` |
61 |
| -# |
62 |
| -# </details> |
63 |
| -# |
64 |
| -# *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`; |
65 |
| -# |
66 |
| -# |
67 |
| -# github.issues.createComment({ |
68 |
| -# issue_number: context.issue.number, |
69 |
| -# owner: context.repo.owner, |
70 |
| -# repo: context.repo.repo, |
71 |
| -# body: output |
72 |
| -# }) |
73 |
| -# |
74 |
| -# - name: terraform plan status |
75 |
| -# if: steps.plan.outcome == 'failure' |
76 |
| -# run: exit 1 |
77 |
| -# |
78 |
| -# - name: terraform apply |
79 |
| -# if: github.ref == 'refs/heads/master' && github.event_name == 'push' |
80 |
| -# run: terraform apply -auto-approve |
0 commit comments