Skip to content

Commit

Permalink
Fix errors with setting PRJ_ROOT_DIR on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kabanov committed Sep 11, 2024
1 parent ae7d672 commit 27c807d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion env.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Set project root directory to use absolute paths below.
export PRJ_ROOT_DIR="$(dirname $(realpath "$0"))"
if [ "$GITHUB_ACTIONS" = "true" ]; then
export PRJ_ROOT_DIR="$GITHUB_WORKSPACE"
else
export PRJ_ROOT_DIR="$(dirname $(realpath "$0"))"
fi

# Set path to implementations
export OIF_IMPL_ROOT_DIR="${PRJ_ROOT_DIR}"
Expand Down

0 comments on commit 27c807d

Please sign in to comment.