Skip to content

Commit a5f9dec

Browse files
committed
adjust pre-commit auto-update workflow
update actions, fix incorrect tags
1 parent 2961873 commit a5f9dec

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/pre-commit-autoupdate.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
name: Autoupdate pre-commit
22

33
on:
4-
# For Branch-Protection check. Only the default branch is supported. See
5-
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
6-
branch_protection_rule:
4+
workflow_dispatch:
75
# To guarantee Maintained check is occasionally updated. See
86
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
97
schedule:
108
- cron: '28 2 * * 6' # Saturday at 02:28 UTC
11-
workflow_dispatch:
129

1310
permissions: read-all
1411

@@ -25,13 +22,13 @@ jobs:
2522
pull-requests: write
2623

2724
steps:
28-
- name: Checkout dpctl repo
29-
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4.2.2
25+
- name: Checkout repo
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3027

3128
- name: Set up python
32-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v5.6.0
29+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3330
with:
34-
python-version: '3.13'
31+
python-version: '3.14'
3532

3633
- name: Install pre-commit
3734
run: pip install pre-commit
@@ -40,7 +37,7 @@ jobs:
4037
run: pre-commit autoupdate
4138

4239
- name: Create a PR with autoupdate changes
43-
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 #v8.1.0
40+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
4441
with:
4542
commit-message: 'chore: update pre-commit hooks'
4643
add-paths: .pre-commit-config.yaml

0 commit comments

Comments
 (0)