Skip to content

Commit

Permalink
Fix wrong branch
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelZe committed Jan 4, 2024
1 parent b3262ce commit d1c6a2c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/autoupdate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]
Expand All @@ -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 }}

0 comments on commit d1c6a2c

Please sign in to comment.