diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index c049998ee..5974a6620 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -21,18 +21,23 @@ jobs: uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} + - uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Set up Python - uses: actions/setup-python@v5.3.0 + uses: actions/setup-python@v5.4.0 with: - python-version: "3.9" - architecture: "x64" + python-version: "3.13" + + - uses: r-lib/actions/setup-r@v2 + - name: Run pre-commit uses: pre-commit/action@v3.0.1 env: SKIP: pkgdown + - name: Commit files if: failure() && startsWith(github.ref, 'refs/heads') run: | @@ -42,12 +47,14 @@ jobs: git checkout -- .github/workflows git commit -m "pre-commit" -a fi + - name: Push changes if: failure() && startsWith(github.ref, 'refs/heads') uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.ref }} + env: RENV_CONFIG_CACHE_ENABLED: FALSE GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} diff --git a/styler.Rproj b/styler.Rproj index 30e02be1a..734d4c4b8 100644 --- a/styler.Rproj +++ b/styler.Rproj @@ -1,4 +1,5 @@ Version: 1.0 +ProjectId: 0778f065-a50f-4f3e-8b43-841eded0d216 RestoreWorkspace: No SaveWorkspace: No