diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f40b8cb7..345312f2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: r-lib/actions/setup-r@v2 # https://github.com/r-lib/actions/issues/374 - uses: r-lib/actions/setup-pandoc@v1 with: @@ -44,7 +44,7 @@ jobs: shell: Rscript {0} - name: Cache R Packages - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ env.R_LIBS_USER }} key: ${{ hashFiles('.github/R-version') }}-${{ hashFiles('.github/pkg-versions.Rds') }}-${{ hashFiles('.github/pkg-deps.Rds') }} @@ -62,7 +62,7 @@ jobs: shell: Rscript {0} - name: Cache Build Artifacts - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/_posts key: ${{ hashFiles('.github/pandoc-version') }}-${{ hashFiles('.github/R-version') }}-${{ hashFiles('.github/pkg-versions.Rds') }}-${{ hashFiles('.github/pkg-deps.Rds') }} @@ -118,7 +118,7 @@ jobs: mkdir ai-blog-preview mv docs ai-blog-preview/ai-blog-preview - name: Upload Preview Directory as GitHub Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: github.ref != 'refs/heads/main' with: name: ai-blog-preview