-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 }} |