From 4e33a03b346a7eb1386aede9ac20eb00a9c129c3 Mon Sep 17 00:00:00 2001 From: Stephen Lewis Date: Wed, 7 Aug 2024 13:56:51 -0700 Subject: [PATCH] Removed test_terraform.sh Cleanup for https://github.com/GoogleCloudPlatform/magic-modules/pull/8992 --- .../terraform-tester/test_terraform.sh | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100755 .ci/scripts/bash-plus/terraform-tester/test_terraform.sh diff --git a/.ci/scripts/bash-plus/terraform-tester/test_terraform.sh b/.ci/scripts/bash-plus/terraform-tester/test_terraform.sh deleted file mode 100755 index 48b17cf7e377..000000000000 --- a/.ci/scripts/bash-plus/terraform-tester/test_terraform.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -set -e - -version=${VERSION:-$1} # fallback for old variable based declaration -pr_number=${PR_NUMBER:-$2} -mm_commit_sha=${COMMIT_SHA:-$3} -github_username=modular-magician - -if [ "$version" == "ga" ]; then - gh_repo=terraform-provider-google -elif [ "$version" == "beta" ]; then - gh_repo=terraform-provider-google-beta -else - echo "no repo, dying." - exit 1 -fi - -new_branch="auto-pr-$pr_number" - -post_body=$(jq -n \ - --arg owner "$github_username" \ - --arg branch "$new_branch" \ - --arg repo "$gh_repo" \ - --arg sha "$mm_commit_sha" \ - '{ - ref: "main", - inputs: { - owner: $owner, - repo: $repo, - branch: $branch, - sha: $sha - } - }') - -curl \ - -X POST \ - -u "$github_username:$GITHUB_TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - "https://api.github.com/repos/GoogleCloudPlatform/magic-modules/actions/workflows/test-tpg.yml/dispatches" \ - -d "$post_body"