Skip to content

Commit 2758ba1

Browse files
authored
Resolve rules_path relative to project directory
1 parent 479d2fd commit 2758ba1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/reverse_engineering.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,14 @@ jobs:
8080
echo "repositories=$repos_str" >> $GITHUB_ENV
8181
echo "current_version=$(yq eval '.current_version' $CONFIG_FILE)" >> $GITHUB_ENV
8282
echo "rules=$(yq eval '.rules[]' $CONFIG_FILE | paste -sd ",")" >> $GITHUB_ENV
83-
echo "rules_path=$(yq eval '.rules_path // ""' $CONFIG_FILE)" >> $GITHUB_ENV
8483
84+
RULES_PATH=$(yq eval '.rules_path // ""' $CONFIG_FILE)
85+
if [ -n "$RULES_PATH" ]; then
86+
echo "rules_path=benchmark/${{ matrix.directory }}/$RULES_PATH" >> $GITHUB_ENV
87+
else
88+
echo "rules_path=" >> $GITHUB_ENV
89+
fi
90+
8591
# Check for overrideBenchmark input
8692
if [ "${{ github.event.inputs.overrideBenchmark }}" == "true" ]; then
8793
echo "benchmark="true"" >> $GITHUB_ENV

0 commit comments

Comments
 (0)