diff --git a/.github/workflows/scaffold.yml b/.github/workflows/scaffold.yml index 2146ed2..2d63240 100644 --- a/.github/workflows/scaffold.yml +++ b/.github/workflows/scaffold.yml @@ -37,7 +37,7 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git commit -m "Generate tp-scaffold files" git branch -M ${{ github.event.inputs.branch }} - git remote add origin "https://github.com/${{ github.repository }}.git" - git push --force origin ${{ github.event.inputs.branch }} + git remote add origin "https://$GITHUB_TOKEN@github.com/${{ github.repository }}" + git push -f -u origin ${{ github.event.inputs.branch }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}