Skip to content

Commit

Permalink
add default value for params
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Aug 18, 2022
1 parent d5f5c94 commit 8d77f24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dev/tasks/docs/github.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

{% import 'macros.jinja' as macros with context %}

{% set pr_number = pr_number|replace("Unset", arrow.branch) %}
{{ macros.github_header() }}

jobs:
Expand All @@ -25,6 +25,8 @@ jobs:
runs-on: ubuntu-latest
{{ macros.github_set_env(env) }}
steps:
- name: Check that PR number set

{{ macros.github_checkout_arrow(fetch_depth=fetch_depth|default(1))|indent }}
{{ macros.github_install_archery()|indent }}

Expand Down
2 changes: 1 addition & 1 deletion dev/tasks/r/github.packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# This allows us to set a custom version via param:
# crossbow submit --param custom_version=8.5.3 r-binary-packages
# if the param is unset defaults to the usual Ymd naming scheme
{% set package_version = custom_version|default("\\2.\'\"$(date +%Y%m%d)\"\'") %}
{% set package_version = custom_version|replace("Unset", "\\2.\'\"$(date +%Y%m%d)\"\'") %}
# We need this as boolean and string
{% set is_upstream_b = arrow.github_repo == 'apache/arrow' %}
# use filter to cast to string and convert to lowercase to match yaml boolean
Expand Down
3 changes: 3 additions & 0 deletions dev/tasks/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,8 @@ tasks:
r-binary-packages:
ci: github
template: r/github.packages.yml
params:
custom_version: Unset
artifacts:
- r-lib__libarrow__bin__windows__arrow-[0-9\.]+\.zip
- r-lib__libarrow__bin__centos-7__arrow-[0-9\.]+\.zip
Expand Down Expand Up @@ -1613,6 +1615,7 @@ tasks:
ci: github
template: docs/github.linux.yml
params:
pr_number: Unset
artifacts: "build/docs.tar.gz"
flags: "-v $PWD/build/:/build/"
image: ubuntu-docs

0 comments on commit 8d77f24

Please sign in to comment.