Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
RadhepS committed Sep 11, 2023
1 parent cc03a2c commit 0bc48a5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,13 @@ jobs:
echo "---------------------------------------------------------------------------------------------------------------------------"
echo "Clone repo"
git clone -b $PUBLIC_REPOSITORY_BRANCH_NAME https://${{ secrets.GHT_USER }}:${{ secrets.GHT_PRIVATE_REPO_TOKEN }}@github.tools.sap/cx-commerce-storefronts/${{ secrets.GHT_SPARTACUS_REPO }}.git
git clone -b $PRIVATE_REPOSITORY_BRANCH_NAME https://${{ secrets.GHT_USER }}:${{ secrets.GHT_PRIVATE_REPO_TOKEN }}@github.tools.sap/cx-commerce-storefronts/${{ secrets.GHT_SPARTACUS_REPO }}.git
cd ${{ secrets.GHT_SPARTACUS_REPO }}
git config --global user.email ${{ secrets.GHT_EMAIL }}
git config --global user.name ${{ secrets.GHT_USER }}
git config --global --add --bool push.autoSetupRemote true
git checkout -b $PRIVATE_REPOSITORY_BRANCH_NAME
git push origin
git push origin --delete $PUBLIC_REPOSITORY_BRANCH_NAME
echo "---------------------------------------------------------------------------------------------------------------------------"
echo "Get files from other branch"
Expand All @@ -56,7 +52,7 @@ jobs:
echo "---------------------------------------------------------------------------------------------------------------------------"
echo "Configure pipeline"
sed -i "s%productiveBranch:%productiveBranch: '${{ github.event.inputs.branch_to_sync || env.DEFAULT_BRANCH_TO_SYNC }}'%gi" $PIPELINE_CONFIG_PATH
sed -i "s%productiveBranch:%productiveBranch: $PRIVATE_REPOSITORY_BRANCH_NAME%gi" $PIPELINE_CONFIG_PATH
echo "---------------------------------------------------------------------------------------------------------------------------"
echo "Verify productiveBranch has been updated with the synched branch name"
Expand Down

0 comments on commit 0bc48a5

Please sign in to comment.