diff --git a/.github/workflows/sync-modules.yml b/.github/workflows/sync-modules.yml index 0c7b193..22d7588 100644 --- a/.github/workflows/sync-modules.yml +++ b/.github/workflows/sync-modules.yml @@ -17,28 +17,17 @@ jobs: uses: actions/checkout@v4 with: path: le-tf-infra-aws-template - - name: list files - run: ls -la - name: Checkout le-tf-infra-aws repo uses: actions/checkout@v4 with: repository: "binbashar/le-tf-infra-aws" path: le-tf-infra-aws - - name: list files le-tf-infra-aws - run: ls -la - - name: see both repos + - name: Sync modules run: | - cd ../ - pwd - ls -la - ls -la le-tf-infra-aws-template/ - #- name: Sync modules - # run: | - # cd le-tf-infra-aws-template - # chmod +x sync_modules.sh - # ./sync_modules.sh ${{ matrix.modules[0] }} ${{ matrix.modules[1] }} - # git add ${{ matrix.modules[1] }} - # git commit -m "Sync ${{ matrix.modules[1] }} module" + cd le-tf-infra-aws-template + chmod +x sync_modules.sh + ./sync_modules.sh ../le-tf-infra-aws/${{ matrix.modules[0] }} ${{ matrix.modules[1] }} + git add ${{ matrix.modules[1] }} - name: Create PR uses: peter-evans/create-pull-request@v7 with: