Skip to content

Commit 6ed7331

Browse files
fix pre-commit workflow
1 parent 311b3f8 commit 6ed7331

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/pre-commit.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,23 @@ jobs:
2121
uses: styfle/[email protected]
2222
with:
2323
access_token: ${{ github.token }}
24+
2425
- uses: actions/checkout@v4
2526
with:
2627
fetch-depth: 0
28+
2729
- name: Set up Python
2830
uses: actions/[email protected]
2931
with:
30-
python-version: "3.9"
31-
architecture: "x64"
32+
python-version: "3.13"
33+
34+
- uses: r-lib/actions/setup-r@v2
35+
3236
- name: Run pre-commit
3337
uses: pre-commit/[email protected]
3438
env:
3539
SKIP: pkgdown
40+
3641
- name: Commit files
3742
if: failure() && startsWith(github.ref, 'refs/heads')
3843
run: |
@@ -42,12 +47,14 @@ jobs:
4247
git checkout -- .github/workflows
4348
git commit -m "pre-commit" -a
4449
fi
50+
4551
- name: Push changes
4652
if: failure() && startsWith(github.ref, 'refs/heads')
4753
uses: ad-m/github-push-action@master
4854
with:
4955
github_token: ${{ secrets.GITHUB_TOKEN }}
5056
branch: ${{ github.ref }}
57+
5158
env:
5259
RENV_CONFIG_CACHE_ENABLED: FALSE
5360
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)