Skip to content

Commit

Permalink
Move adding Ruby user install to PATH on ARM step
Browse files Browse the repository at this point in the history
  • Loading branch information
raulcd committed Aug 1, 2023
1 parent 001362e commit 07e6190
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dev/tasks/macros.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ on:
{% endmacro %}

{%- macro github_upload_gemfury(pattern) -%}
{%- if arrow.is_default_branch() -%}
- name: Set up Ruby by apt
if: runner.os == 'Linux' && runner.arch != 'X64'
run: |
Expand All @@ -147,6 +146,7 @@ on:
run: |
# GH-36692: Pin gemfury due to wrong faraday dependency declaration.
gem install --user-install gemfury -v 0.12.0
ruby -r rubygems -e 'puts("#{Gem.user_dir}/bin")' >> $GITHUB_PATH
- name: Install gemfury client
if: runner.arch == 'X64'
run: |
Expand All @@ -155,15 +155,13 @@ on:
- name: Upload package to Gemfury
shell: bash
run: |
PATH=$(echo $(ruby -r rubygems -e 'puts Gem.user_dir'))/bin:$PATH
fury push \
--api-token=${CROSSBOW_GEMFURY_TOKEN} \
--as=${CROSSBOW_GEMFURY_ORG} \
{{ pattern }}
env:
CROSSBOW_GEMFURY_TOKEN: {{ '${{ secrets.CROSSBOW_GEMFURY_TOKEN }}' }}
CROSSBOW_GEMFURY_ORG: {{ '${{ secrets.CROSSBOW_GEMFURY_ORG }}' }}
{% endif %}
{% endmacro %}

{%- macro azure_checkout_arrow() -%}
Expand Down

0 comments on commit 07e6190

Please sign in to comment.