Skip to content

Commit 4d37af7

Browse files
committed
[CI] Switch to 3rdparty GitHub action to update pre-commit versions
1 parent 99f6ada commit 4d37af7

2 files changed

Lines changed: 11 additions & 60 deletions

File tree

.github/actions/update-precommit/action.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

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

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
contents: write
10-
pull-requests: write
11-
actions: write
12-
checks: write
13-
repository-projects: write
9+
contents: read
10+
pull-requests: read
1411

1512
jobs:
1613
update-pre-commit:
1714
if: ${{ github.repository == 'learning-process/parallel_programming_course' }}
1815
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
pull-requests: write
1919
steps:
20-
- name: Checkout repository
21-
uses: actions/checkout@v6
2220
- name: Update pre-commit hooks
23-
uses: ./.github/actions/update-precommit
21+
uses: tagdots/update-pre-commit-action@1.0.28
22+
env:
23+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2424
with:
25-
token: ${{ secrets.GITHUB_TOKEN }}
25+
file: .pre-commit-config.yaml
26+
dry-run: false
27+
open-pr: true

0 commit comments

Comments
 (0)