-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from nobbi1991/dev
Dev
- Loading branch information
Showing
3 changed files
with
34 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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: Update pre-commit hooks | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 0' # Runs every Sunday at midnight UTC | ||
push: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
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 |
---|---|---|
|
@@ -6,3 +6,5 @@ | |
/tests/.coverage | ||
/.coverage | ||
*.log | ||
/shelf/ | ||
/workspace.xml |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.