diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0af10cf..652ed49 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,6 +35,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} - name: Make script executable run: chmod +x ./generate-cookiecutter-template-from-example-project.sh - name: Generate cookiecutter template @@ -46,7 +48,6 @@ jobs: run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - git pull --rebase origin ${{ github.head_ref }} git add . git diff --cached --quiet || git commit -m "ci: update generated cookiecutter template from example" git push origin HEAD:${{ github.head_ref }}