From 419b37895503db4045125686aa3e51a7e7f43eb0 Mon Sep 17 00:00:00 2001 From: "Hamada S. Badr" Date: Mon, 19 Feb 2024 18:01:54 -0500 Subject: [PATCH] GHA: Update actions --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eab3368b5..942966362 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,7 +40,7 @@ jobs: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: r-lib/actions/setup-r@v2 with: @@ -60,7 +60,7 @@ jobs: - name: Cache R packages if: runner.os != 'Windows' - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ env.R_LIBS_USER }} key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} @@ -134,7 +134,7 @@ jobs: - name: Upload check results if: failure() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ runner.os }}-r${{ matrix.config.r }}-results path: check @@ -169,20 +169,20 @@ jobs: - name: Upload StanHeaders source package if: matrix.config.os == 'ubuntu-20.04' && matrix.config.r == 'devel' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: StanHeaders_${{ env.STANHEADERS_VERSION }}.tar.gz path: build/StanHeaders_${{ env.STANHEADERS_VERSION }}.tar.gz - name: Upload RStan source package if: matrix.config.os == 'ubuntu-20.04' && matrix.config.r == 'devel' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: rstan_${{ env.RSTAN_VERSION }}.tar.gz path: build/rstan_${{ env.RSTAN_VERSION }}.tar.gz - name: Upload binary packages - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: R-${{ matrix.config.r }}_${{ matrix.config.os }} path: build_bin