Skip to content

GitHub script #4

Merged
merged 25 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c1885bf
Update terraform_plan.yaml
arnol377 Aug 15, 2024
816aa4d
Update terraform_plan.yaml
arnol377 Aug 15, 2024
f7a372e
Update terraform_plan.yaml
arnol377 Aug 15, 2024
604288a
Update terraform_plan.yaml
arnol377 Aug 15, 2024
c309667
Update terraform_plan.yaml
arnol377 Aug 15, 2024
e89a87b
Merge branch 'main' into github_script
Aug 15, 2024
56c9c99
Update backend.tf
arnol377 Aug 15, 2024
e7ddde8
Update terraform_plan.yaml
arnol377 Aug 15, 2024
b7afb6b
Update terraform_plan.yaml
arnol377 Aug 15, 2024
01ab892
Update terraform_plan.yaml
arnol377 Aug 15, 2024
512f3b2
Update terraform_plan.yaml
arnol377 Aug 15, 2024
b6b5d80
Update terraform_plan.yaml
arnol377 Aug 15, 2024
0c935bb
Update terraform_plan.yaml
arnol377 Aug 15, 2024
f026c86
Update terraform_plan.yaml
arnol377 Aug 15, 2024
459bed9
Update terraform_plan.yaml
arnol377 Aug 15, 2024
06099df
Update terraform_plan.yaml
arnol377 Aug 15, 2024
bab0cce
Autoformatting TF Code
arnol377 Aug 15, 2024
accfb48
Refactor image pipeline module names and update workflows
Aug 15, 2024
11804f0
updating crucial parts of the codebase
arnol377 Aug 15, 2024
c802841
updating workflow
arnol377 Aug 15, 2024
e113f2a
Merge branch 'github_script' of github.e.it.census.gov:CSVD/automatio…
arnol377 Aug 15, 2024
9741a63
Refactor image pipeline module names and update workflows
Aug 15, 2024
0a919ce
Merge branch 'main' of https://github.com/HappyPathway/automation-rep…
arnol377 Aug 15, 2024
d1d8868
Update terraform_plan.yaml
arnol377 Aug 15, 2024
da8aaf9
Update terraform-plan.yaml.tpl
arnol377 Aug 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/terraform_plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ jobs:
run: terraform plan -no-color
continue-on-error: true

- uses: CSVD/gh-actions-github-script@v6
- name: Post Terraform Plan to PR
uses: CSVD/gh-actions-github-script@v6
if: github.event_name == 'pull_request'
env:
PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
Expand Down
2 changes: 1 addition & 1 deletion backend.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
backend "s3" {
bucket = "inf-tfstate-229685449397"
key = "csvd-dev-gov/common/apps/terraform-repos"
key = "csvd-dev-gov/common/apps/terraform-repos"
region = "us-gov-east-1"
dynamodb_table = "tf_remote_state"
}
Expand Down
8 changes: 5 additions & 3 deletions workflows/terraform-plan.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

with:
ref: $${{ github.head_ref }}
token: $${{ secrets.GH_TOKEN }}

- uses: CSVD/gh-actions-setup-node@v3
with:
Expand All @@ -48,7 +50,7 @@ jobs:

- name: Autoformat Halt
if: env.auto_format == 'true'
run: exit 1
run: exit 0

- name: Terraform Init
id: init
Expand Down Expand Up @@ -90,4 +92,4 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})
})
Loading