Skip to content

Commit

Permalink
Add better conditionality on node and ruby installs
Browse files Browse the repository at this point in the history
  • Loading branch information
wwahammy committed Apr 22, 2024
1 parent 0276c8b commit dd1adbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/actions/after-checkout-prep/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ runs:
postgres_password: password
- name: "Install NPM packages"
uses: "./.github/actions/install-packages"
if: ${{ inputs.node != '' }}
if: ${{ inputs.node && inputs.node != '' }}
with:
node: ${{ inputs.node }}
- name: "Install Ruby packages"
uses: "./.github/actions/install-packages"
if: ${{ inputs.ruby != '' }}
if: ${{ inputs.ruby && inputs.ruby != '' }}
with:
ruby: ${{ inputs.ruby }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cache-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
npm-package-download:
name: Download NPM packages
runs-on: ${{ inputs.os }}
if: ${{ inputs.node != '' }}
if: ${{ inputs.node && inputs.node != '' }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-packages
Expand All @@ -22,7 +22,7 @@ jobs:
ruby-package-download:
name: Download Ruby packages
runs-on: ${{ inputs.os }}
if: ${{ inputs.ruby != '' }}
if: ${{ inputs.ruby && inputs.ruby != '' }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-packages
Expand Down

0 comments on commit dd1adbc

Please sign in to comment.