From d1f4b565ab05735a80ebdedf44c8f27414e30b4a Mon Sep 17 00:00:00 2001 From: Rene Montilva Date: Sun, 17 Nov 2024 17:29:21 +0100 Subject: [PATCH] fixup! feat(SYNC-MODULES): Add modules syncronization with le-tf-infra-aws repo --- .github/workflows/sync-modules.yml | 2 +- sync_modules.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-modules.yml b/.github/workflows/sync-modules.yml index 9da512f..9e3ee85 100644 --- a/.github/workflows/sync-modules.yml +++ b/.github/workflows/sync-modules.yml @@ -28,7 +28,7 @@ jobs: ls -la chmod +x sync_modules.sh ./sync_modules.sh ../le-tf-infra-aws/${{ matrix.modules[0] }} template/${{ matrix.modules[1] }} - git add ${{ matrix.modules[1] }} + git status - name: Create PR uses: peter-evans/create-pull-request@v7 with: diff --git a/sync_modules.sh b/sync_modules.sh index 6c627e6..792d1ec 100755 --- a/sync_modules.sh +++ b/sync_modules.sh @@ -58,7 +58,8 @@ if [ "$TEMPLATE_VERSION" == "$INFRA_VERSION" ]; then exit 0 else echo "Versions do not match, updating on template repository" - sed -i "s/ref=$TEMPLATE_VERSION/ref=$INFRA_VERSION/g" le-tf-infra-aws-template/template/management/global/sso/account_assignments.tf + sed -i "s/ref=$TEMPLATE_VERSION/ref=$INFRA_VERSION/g" $TEMPLATE_FILE echo "Updated the version in the template repository file to $INFRA_VERSION" + git add $TEMPLATE_FILE exit 0 fi