Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sorinvoicu committed Mar 13, 2024
1 parent 27273ed commit 2ffb0c7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/actions/dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ inputs:
runs:
using: 'composite'
steps:
- name: Normalize variables 📏
run: |
dep_path="${{ inputs.dep_path }}"
echo "dep_path=${dep_path:-'dependencies.yml'}" >> $GITHUB_ENV
shell: bash
# - name: Normalize variables 📏
# run: |
# dep_path="${{ inputs.dep_path }}"
# echo "dep_path=${dep_path:-'dependencies.yml'}" >> $GITHUB_ENV
# shell: bash

- name: Install package dependencies 📄
run: |
if (file.exists("${{ env.dep_path }}")) {
repos <- yaml::yaml.load(readLines("${{ env.dep_path }}"))$dependencies |>
if (file.exists("${{ inputs.dep_path }}")) {
repos <- yaml::yaml.load(readLines("${{ inputs.dep_path }}"))$dependencies |>
sapply(function(x) x$repo)
if(repos |> length() > 0) {
repos |>
Expand Down

0 comments on commit 2ffb0c7

Please sign in to comment.