Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test pr-comments #3

Merged
merged 11 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
19 changes: 7 additions & 12 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
tf_version: '1.5.7'
tg_version: '0.53.2'
working_dir: 'run-all'
TRACE: '1'
#TRACE: '1'

jobs:
checks:
Expand All @@ -15,24 +15,19 @@ jobs:
- name: 'Checkout'
uses: actions/checkout@master

- name: Run checks
uses: gruntwork-io/terragrunt-action@v2
- uses: webfactory/[email protected]
with:
tf_version: ${{ env.tf_version }}
tg_version: ${{ env.tg_version }}
tg_dir: ${{ env.working_dir }}
tg_command: 'hclfmt --terragrunt-check --terragrunt-diff'
tg_comment: '0'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh-auth-sock: "/home/runner/work/_temp/_github_workflow/ssh-agent.sock"

- name: Run plan
uses: gruntwork-io/terragrunt-action@v2
uses: gruntwork-io/terragrunt-action@bug/jq-args-71
with:
tf_version: ${{ env.tf_version }}
tg_version: ${{ env.tg_version }}
tg_dir: ${{ env.working_dir }}
tg_command: 'run-all plan'
tg_comment: '1'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_AUTH_SOCK: "/github/workflow/ssh-agent.sock"
4 changes: 4 additions & 0 deletions run-all/app10/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
Empty file added run-all/app10/terragrunt.hcl
Empty file.
4 changes: 4 additions & 0 deletions run-all/app11/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
Empty file added run-all/app11/terragrunt.hcl
Empty file.
4 changes: 4 additions & 0 deletions run-all/app4/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
Empty file added run-all/app4/terragrunt.hcl
Empty file.
4 changes: 4 additions & 0 deletions run-all/app5/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
Empty file added run-all/app5/terragrunt.hcl
Empty file.
4 changes: 4 additions & 0 deletions run-all/app6/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
Empty file added run-all/app6/terragrunt.hcl
Empty file.
4 changes: 4 additions & 0 deletions run-all/app7/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
Empty file added run-all/app7/terragrunt.hcl
Empty file.
4 changes: 4 additions & 0 deletions run-all/app8/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
Empty file added run-all/app8/terragrunt.hcl
Empty file.
4 changes: 4 additions & 0 deletions run-all/app9/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
Empty file added run-all/app9/terragrunt.hcl
Empty file.
14 changes: 14 additions & 0 deletions run-all/project-2/copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

BASE_NAME="project-2-app1"

for i in $(seq -w 1 400)
do
# Define the target folder name with zero-padded index
TARGET_FOLDER="${BASE_NAME}-${i}"

# Copy the source folder to the target folder
cp -r "$BASE_NAME" "$TARGET_FOLDER"

echo "Created $TARGET_FOLDER"
done
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-001/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-001/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-002/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-002/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-003/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-003/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-004/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-004/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-005/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-005/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-006/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-006/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-007/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-007/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-008/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-008/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-009/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-009/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-010/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-010/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-011/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-011/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-012/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-012/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-013/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-013/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-014/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-014/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-015/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-015/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-016/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
12 changes: 12 additions & 0 deletions run-all/project-2/project-2-app1-016/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
locals {
repo_root = get_path_to_repo_root()
log_print0 = run_cmd("echo", "log_print 2 0")
log_print = run_cmd("echo", get_path_to_repo_root())
log_print9 = run_cmd("echo", "log_print 2 0")
}

inputs = {
str1 = "46521694"
str2 = 123

}
4 changes: 4 additions & 0 deletions run-all/project-2/project-2-app1-017/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "local_file" "file" {
content = " file"
filename = "${path.module}/cluster_name.txt"
}
Loading
Loading