Skip to content

Commit

Permalink
test new template [skip actions]
Browse files Browse the repository at this point in the history
  • Loading branch information
elsegev committed Mar 14, 2024
1 parent 10fca8d commit 5315a25
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5315a25

Please sign in to comment.