Skip to content

Commit

Permalink
check for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelZe committed Jan 4, 2024
1 parent e2e52cb commit 2ce6c58
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/autoupdate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,13 @@ jobs:
run: python -m pip install pre-commit
- name: Run pre-commit autoupdate
run: pre-commit autoupdate
# run: |
# git config user.name Autoupdater pre-commit
# git config user.email [email protected]
# git add .
# git commit -m "Auto-update pre-commit hooks" -m "Update versions of tools in pre-commit configs to latest version"
# git push
- name: Check for changes
id: check_changes
run: |
git diff --exit-code || echo "Changes detected"
- name: Create pull request
#run: gh pr create --base main --fill-first --assignee "@me"
if: steps.check_changes.outputs.return-code == '0'
# https://github.com/cli/cli/issues/6485#issuecomment-1287937905
# run: gh pr create --repo=karelze/tclf --base main --head karelze:${{ github.run_id }}-${{ github.run_attempt }} --assignee "karelze" --title "Auto-update pre-commit hooks" --body "Update versions of tools in pre-commit configs to latest version"
run: gh pr create --base main --head karelze:${{ github.run_id }}-${{ github.run_attempt }} --assignee "karelze" --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 2ce6c58

Please sign in to comment.