Skip to content

Commit c070b20

Browse files
committed
push with token
1 parent c2bc443 commit c070b20

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ jobs:
4343

4444
- name: Test template in demo repo
4545
# if: github.ref_name == 'main' && github.event_name != 'pull_request'
46+
env:
47+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4648
run: |
4749
4850
# Delete the current repository
4951
rm -rf .git
5052
5153
# Setup the destination repository
52-
git clone git@github.com:jacebrowning/template-python-demo.git temp
54+
git clone https://github.com/jacebrowning/template-python-demo temp
5355
mv temp/.git TemplateDemo/.git
5456
rm -rf temp
5557
cd TemplateDemo
@@ -62,4 +64,4 @@ jobs:
6264
# Rebuild the repository from the generated files and push to GitHub
6365
git add --all
6466
git commit -m "Deploy GHA build ${{ github.run_id }} to GitHub"
65-
git push
67+
git push -f https://${GH_TOKEN}@github.com/jacebrowning/template-python-demo main

0 commit comments

Comments
 (0)