Skip to content

Commit

Permalink
Merge pull request #94 from nobbi1991/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
nobbi1991 authored Nov 29, 2024
2 parents 19a9d10 + 4283737 commit 70a5fff
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/update_pre_commit_hooks.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Update pre-commit hooks

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # Runs every Sunday at midnight UTC
push:
Expand All @@ -13,9 +12,9 @@ jobs:
runs-on: ubuntu-latest

steps:
# Checkout the repository
# Checkout repository
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Install pre-commit
- name: Install pre-commit
Expand All @@ -27,8 +26,14 @@ jobs:
# Run pre-commit autoupdate to update the hook versions
run: pre-commit autoupdate

# Create a new branch and push changes (if the branch does not exist)
# Set git user identity to avoid "empty ident name" error
- name: Set Git user identity
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Create branch and push updates
# Create a new branch and push updates (if the branch does not exist)
run: |
# Check if the branch exists, if not, create it
git fetch origin
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
/tests/.coverage
/.coverage
*.log
/shelf/
/workspace.xml
23 changes: 23 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 70a5fff

Please sign in to comment.