Skip to content

Commit

Permalink
for renv take into account the case where renv dir does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
fradav committed Oct 10, 2024
1 parent e23894b commit 591e59f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/global-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ jobs:
echo "r=true" >> $GITHUB_OUTPUT
echo "${{ env.paths-r }}" >> paths.sh
cat renv.lock >> tohash.txt
ln -s $GITHUB_WORKSPACE/renv /home/runner/work/_temp
if [ -d renv ]; then
ln -s $GITHUB_WORKSPACE/renv /home/runner/work/_temp
else
mkdir /home/runner/work/_temp/renv
fi
fi
cachepath=$(jq -crRs '@json' <<< "$(cat paths.sh)")
Expand Down

0 comments on commit 591e59f

Please sign in to comment.