diff --git a/.github/workflows/update_repo.yaml b/.github/workflows/update_repo.yaml index de56b94..b61d9b8 100644 --- a/.github/workflows/update_repo.yaml +++ b/.github/workflows/update_repo.yaml @@ -8,9 +8,9 @@ jobs: check: runs-on: ubuntu-latest steps: - - name: Checkout user repo - uses: actions/checkout@v2 - path: user_repo +# - name: Checkout user repo +# uses: actions/checkout@v2 +# path: user_repo - name: Install Dart uses: dart-lang/setup-dart@v1 - name: Dart SDK Version @@ -31,12 +31,13 @@ jobs: run: | cd codelessly_starter_brick/__brick__ git init - git checkout -b main git remote add origin https://github.repository_owner:${{ secrets.CODELESSLY_APP_ACCESS_TOKEN }}@github.com/${{ github.repository }}.git git config user.name Codelessly git config user.email codelessly@gmail.com + git fetch + git checkout -b main git add . git commit -m "Update to latest template" - git push --force origin ${{ github.ref_name }} + git push origin ${{ github.ref_name }} - name: Finish run: echo "Finished"