diff --git a/.github/workflows/autoupdate.yaml b/.github/workflows/autoupdate.yaml index 25f71fa..84dffcc 100644 --- a/.github/workflows/autoupdate.yaml +++ b/.github/workflows/autoupdate.yaml @@ -12,13 +12,12 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.x" - - name: Git branch - run: git branch autoupdate-pre-commit + - name: Git switch to new branch + run: git switch --create=karelze:${{ github.run_id }}-${{ github.run_attempt }} - name: Install pre-commit run: python -m pip install pre-commit - name: Run pre-commit autoupdate run: pre-commit autoupdate - # - name: Git add and commit # run: | # git config user.name Autoupdater pre-commit # git config user.email autoupdater@markusbilz.com @@ -28,6 +27,6 @@ jobs: - name: Create pull request #run: gh pr create --base main --fill-first --assignee "@me" # https://github.com/cli/cli/issues/6485#issuecomment-1287937905 - run: gh pr create --base main --assignee "@me" --title "Auto-update pre-commit hooks" --body "Update versions of tools in pre-commit configs to latest version" --head=karelze:${{ github.run_id }}-${{ github.run_attempt }} + run: gh pr create --base main --assignee "@me" --title "Auto-update pre-commit hooks" --body "Update versions of tools in pre-commit configs to latest version" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}