This is an automated email from the ASF dual-hosted git repository.
raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 4fac528e2e GH-37639: [CI] Fix checkout on older OSes (#37640)
4fac528e2e is described below
commit 4fac528e2ee9c4efce453420275cbaf0b3b6adb0
Author: Jacob Wujciak-Jens <[email protected]>
AuthorDate: Wed Sep 13 11:24:17 2023 +0200
GH-37639: [CI] Fix checkout on older OSes (#37640)
### Rationale for this change
Jobs are failing due to not being supported by node 20
### What changes are included in this PR?
Using v3 where needed.
### Are these changes tested?
Crossbow
* Closes: #37639
Lead-authored-by: Jacob Wujciak-Jens <[email protected]>
Co-authored-by: Raúl Cumplido <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
---
dev/tasks/macros.jinja | 4 ++--
dev/tasks/r/github.macos.autobrew.yml | 2 +-
dev/tasks/r/github.packages.yml | 3 ++-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/dev/tasks/macros.jinja b/dev/tasks/macros.jinja
index 06b9390c0f..faf77a1168 100644
--- a/dev/tasks/macros.jinja
+++ b/dev/tasks/macros.jinja
@@ -25,9 +25,9 @@ on:
- "*-github-*"
{% endmacro %}
-{%- macro github_checkout_arrow(fetch_depth=1, submodules="recursive") -%}
+{%- macro github_checkout_arrow(fetch_depth=1, submodules="recursive",
action_v="4") -%}
- name: Checkout Arrow
- uses: actions/checkout@v4
+ uses: actions/checkout@v{{ action_v }}
with:
fetch-depth: {{ fetch_depth }}
path: arrow
diff --git a/dev/tasks/r/github.macos.autobrew.yml
b/dev/tasks/r/github.macos.autobrew.yml
index 28733dbfef..b8e23690e2 100644
--- a/dev/tasks/r/github.macos.autobrew.yml
+++ b/dev/tasks/r/github.macos.autobrew.yml
@@ -34,7 +34,7 @@ jobs:
- "{{ macros.r_release.ver }}"
- "{{ macros.r_oldrel.ver }}"
steps:
- {{ macros.github_checkout_arrow()|indent }}
+ {{ macros.github_checkout_arrow(action_v='3')|indent }}
- name: Configure autobrew script
run: |
# minio and sccache are pre-installed on the self-hosted 10.13 runner
diff --git a/dev/tasks/r/github.packages.yml b/dev/tasks/r/github.packages.yml
index e3e3d34e15..dbe21ffb6b 100644
--- a/dev/tasks/r/github.packages.yml
+++ b/dev/tasks/r/github.packages.yml
@@ -262,7 +262,8 @@ jobs:
# Get the arrow checkout just for the docker config scripts
# Don't need submodules for this (hence false arg to macro): they fail on
# actions/checkout for some reason in this context
- {{ macros.github_checkout_arrow(1, false)|indent }}
+ {{ macros.github_checkout_arrow(1, false, '3')|indent }}
+
- name: Install system requirements
env:
ARROW_R_DEV: "TRUE" # To install curl/openssl in
r_docker_configure.sh