Skip to content

Commit

Permalink
Move magician back to running against master instead of 2.0.0 branch (#…
Browse files Browse the repository at this point in the history
…1092)

Merged PR #1092.
  • Loading branch information
chrisst authored and modular-magician committed Dec 21, 2018
1 parent 7ee7bd4 commit d9157c5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .ci/magic-modules/create-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if [ "$BRANCH_NAME" = "$ORIGINAL_PR_BRANCH" ]; then
fi

git checkout -b "$BRANCH_NAME"
if TF_PR=$(hub pull-request -b "$TERRAFORM_REPO_USER/$PROVIDER_NAME:2.0.0" -F ./downstream_body); then
if TF_PR=$(hub pull-request -b "$TERRAFORM_REPO_USER/$PROVIDER_NAME:master" -F ./downstream_body); then
DEPENDENCIES="${DEPENDENCIES}depends: $TF_PR ${NEWLINE}"
else
echo "$SUBMODULE_DIR - did not generate a PR."
Expand Down
4 changes: 2 additions & 2 deletions .ci/magic-modules/generate-terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ go get
# "-wholename": entire relative path - including directory names - matches following wildcard.
# "-name": filename alone matches following string. e.g. -name README.md matches ./README.md *and* ./foo/bar/README.md
# "-exec": for each file found, execute the command following until the literal ';'
find . -type f -not -wholename "./.git*" -not -wholename "./vendor*" -not -name ".travis.yml" -not -name ".gometalinter.json" -not -name "CHANGELOG.md" -not -name GNUmakefile -not -name LICENSE -not -name README.md -not -wholename "./examples*" -not -name "main.go" -not -wholename "./scripts*" -not -wholename "./version*" -exec git rm {} \;
find . -type f -not -wholename "./.git*" -not -wholename "./vendor*" -not -name ".travis.yml" -not -name ".gometalinter.json" -not -name "CHANGELOG.md" -not -name GNUmakefile -not -name LICENSE -not -name README.md -not -wholename "./examples*" -not -name "main.go" -not -name "go.mod" -not -name "go.sum" -not -wholename "./scripts*" -not -wholename "./version*" -exec git rm {} \;
popd

pushd magic-modules-branched
Expand Down Expand Up @@ -58,7 +58,7 @@ git add -A
git commit -m "$TERRAFORM_COMMIT_MSG" --author="$LAST_COMMIT_AUTHOR" || true # don't crash if no changes
git checkout -B "$(cat ../../branchname)"

apply_patches "$PATCH_DIR/terraform-providers/$PROVIDER_NAME" "$TERRAFORM_COMMIT_MSG" "$LAST_COMMIT_AUTHOR" "2.0.0"
apply_patches "$PATCH_DIR/terraform-providers/$PROVIDER_NAME" "$TERRAFORM_COMMIT_MSG" "$LAST_COMMIT_AUTHOR" "master"

popd
popd
Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
[submodule "build/terraform"]
path = build/terraform
url = git@github.com:terraform-providers/terraform-provider-google.git
branch = 2.0.0
branch = master
[submodule "build/terraform-beta"]
path = build/terraform-beta
url = git@github.com:terraform-providers/terraform-provider-google-beta.git
branch = 2.0.0
branch = master
[submodule "build/inspec"]
path = build/inspec
url = git@github.com:modular-magician/inspec-gcp.git
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta

0 comments on commit d9157c5

Please sign in to comment.