diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 01e8bce..80802ce 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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