Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,17 @@ jobs:
run: make all

- name: Checkout demo repo
if: github.ref_name == 'main' && github.event_name != 'pull_request'
# if: github.ref_name == 'main' && github.event_name != 'pull_request'
uses: actions/checkout@v4
with:
repository: jacebrowning/template-python-demo
path: temp

- name: Test template in demo repo
if: github.ref_name == 'main' && github.event_name != 'pull_request'
# if: github.ref_name == 'main' && github.event_name != 'pull_request'
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
# Configure Git with GHA information, for more info see:
# https://github.com/actions/checkout?tab=readme-ov-file#push-a-commit-using-the-built-in-token
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

# Delete the current repository
rm -rf .git

Expand All @@ -60,4 +57,4 @@ jobs:
cd TemplateDemo
git add --all
git commit -m "Deploy GHA build ${{ github.run_id }} to GitHub"
git push
git push -f https://${GH_TOKEN}@github.com/jacebrowning/template-python-demo main
Loading