diff --git a/.github/workflows/run_test.yml b/.github/workflows/run_test.yml index e73a604cb..a32cac644 100644 --- a/.github/workflows/run_test.yml +++ b/.github/workflows/run_test.yml @@ -60,31 +60,31 @@ jobs: # # echo "Repository $MICROSERVICE_NAME created under organization $ORG_NAME" -# - name: Git add config -# run: | -# set -x -# cat ./.git/config -# git config --unset-all http.https://github.com/.extraheader - - name: Deploy template - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.PAT }} - with: - source-directory: "." - destination-github-username: ${{ env.ORG_NAME }} - destination-repository-name: ${{ env.MICROSERVICE_NAME }} - target-branch: main + - name: Git add config + run: | + set -x + cat ./.git/config + git config --unset-all http.https://github.com/.extraheader +# - name: Deploy template +# uses: cpina/github-action-push-to-another-repository@main +# env: +# API_TOKEN_GITHUB: ${{ secrets.PAT }} +# with: +# source-directory: "." +# destination-github-username: ${{ env.ORG_NAME }} +# destination-repository-name: ${{ env.MICROSERVICE_NAME }} +# target-branch: main -# - name: Set remote URL -# run: | -# cat ./.git/config -# git remote -v -# git remote set-url origin https://github.com/$ORG_NAME/$MICROSERVICE_NAME.git -# -# - name: Push to branch -# run: | -# cat ./.git/config -# git remote -v -# git branch -M main -# git push -u origin main + - name: Set remote URL + run: | + cat ./.git/config + git remote -v + git remote set-url origin https://$PAT@github.com/$ORG_NAME/$MICROSERVICE_NAME.git + + - name: Push to branch + run: | + cat ./.git/config + git remote -v + git branch -M main + git push -u origin main