diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index 6ef8a902947..a435d9d5a42 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -102,6 +102,16 @@ jobs: branch_name="new_branch_$timestamp" git checkout -b $branch_name + # Replace the content inside js-storefront/spartacusstore with the content from ./../../spartacus-${{ github.event.inputs.version }}/apps/spartacusstore + rm -rf js-storefront/spartacusstore/* + cp -r ./../../spartacus-${{ github.event.inputs.version }}/apps/spartacusstore/* js-storefront/spartacusstore/ + + # Add the changes to the new branch + git add . + + # Commit the changes + git commit -m "Updated content of js-storefront/spartacusstore" + # Push the changes to the new branch git push -u https://${{secrets.GH_TEMPORARY_TOKEN}}@github.com/SAP-samples/cloud-commerce-sample-setup.git