Skip to content

Commit

Permalink
chore: fix update action and reduce frequency (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlegner authored Nov 14, 2023
1 parent 7ae3fc6 commit 69be405
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "sunday"
interval: "monthly"
commit-message:
prefix: "chore"
include: "scope"
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/updates.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Updates

on:
# every Sunday
# every month
schedule:
- cron: '14 3 * * 0'
- cron: '14 3 1 * *'
# on demand
workflow_dispatch:

jobs:
pre-commit:
name: "Update pre-commit hooks and run them on all files"
runs-on: ubuntu-latest
runs-on: ubuntu-ghcloud
permissions:
contents: write
pull-requests: write
Expand All @@ -20,7 +20,9 @@ jobs:
with:
python-version: '3.12'
- run: rustup update stable
- run: sudo apt-get install protobuf-compiler
- run: cargo install cargo-sort@1.0.9
- run: cargo install --locked cargo-deny@0.14.3
- run: pip install pre-commit
- run: pre-commit autoupdate
- run: pre-commit run --all-files
Expand Down

0 comments on commit 69be405

Please sign in to comment.