Skip to content

Commit

Permalink
Improve PATH handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Aug 3, 2024
1 parent 562ebd5 commit 4809b8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ runs:
shell: bash
- name: Activate OpenFOAM for future steps
run: |
OLD_PATH="$PATH"
source "${{ steps.prep.outputs.openfoam-bashrc }}" || true
for var in "${!WM_@}"; do
Expand All @@ -71,7 +72,7 @@ runs:
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
echo "$PATH" >> "$GITHUB_PATH"
echo "${PATH/%:$OLD_PATH}" >> "$GITHUB_ENV"
shell: bash
- name: Add shell session commands to PATH
if: steps.prep.outputs.openfoam-flavor == 'com'
Expand Down

0 comments on commit 4809b8d

Please sign in to comment.