Skip to content

Commit 67d3423

Browse files
committed
[SPARK-31589][INFRA] Use r-lib/actions/setup-r in GitHub Action
This PR aims to use `r-lib/actions/setup-r` because it's more stable and maintained by 3rd party. This will recover the current outage. In addition, this will be more robust in the future. As of now, this is tested via dongjoon-hyun#17 . No. Pass the GitHub Actions, especially `Linter R` and `Generate Documents`. Closes #28382 from dongjoon-hyun/SPARK-31589. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: HyukjinKwon <[email protected]> (cherry picked from commit 2d3e960) Signed-off-by: HyukjinKwon <[email protected]>
1 parent 4a23bd0 commit 67d3423

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/branch-2.4.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ jobs:
8888
- uses: actions/setup-java@v1
8989
with:
9090
java-version: '1.8'
91-
- name: install R
91+
- uses: r-lib/actions/setup-r@v1
92+
with:
93+
r-version: '3.6.2'
94+
- name: install lib
9295
run: |
93-
echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' | sudo tee -a /etc/apt/sources.list
94-
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
95-
sudo apt-get update
96-
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
96+
sudo apt-get install -y libcurl4-openssl-dev
9797
- name: install R packages
9898
run: |
9999
sudo Rscript -e "install.packages(c('curl', 'xml2', 'httr', 'devtools', 'testthat', 'knitr', 'rmarkdown', 'roxygen2', 'e1071', 'survival'), repos='https://cloud.r-project.org/')"

0 commit comments

Comments
 (0)