Skip to content

Commit

Permalink
Edit action and script to use the new gh organization
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-calabrese committed Mar 6, 2025
1 parent c9bb42d commit ef78fc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/push-module/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ runs:
set -euo pipefail
REGISTRY_MODULE_NAME=${MODULE_NAME//_/\-}
PROVIDER=$(jq -r '.provider // "azurerm"' infra/modules/${MODULE_NAME}/package.json)
REPO_URL=https://github.com/$REPO_OWNER/terraform-$PROVIDER-${REGISTRY_MODULE_NAME}
REPO_URL=https://github.com/$REPO_OWNER/terraform-${PROVIDER}-${REGISTRY_MODULE_NAME}
git remote add module-repo "$REPO_URL"
Expand Down
2 changes: 1 addition & 1 deletion infra/scripts/add-module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ if gh repo view "$ORG_NAME/$SUBREPO_NAME" &> /dev/null; then
echo -e "${GREEN}Description updated to: $DESCRIPTION${NC}"
else
# Confirm before creating the GitHub repository
read -p "Do you want to create the GitHub repository '$SUBREPO_NAME' in organization '$ORG_NAME'? (y/n):" CONFIRM
read -p "$(echo -e "${YELLOW}Do you want to create the GitHub repository '${SUBREPO_NAME}' in organization '${ORG_NAME}'? (y/n): ${NC}")" CONFIRM
if [[ "$CONFIRM" != "y" && "$CONFIRM" != "Y" ]]; then
echo -e "${YELLOW}Repository creation canceled.${NC}"
exit 0
Expand Down

0 comments on commit ef78fc0

Please sign in to comment.