Skip to content

Commit

Permalink
Update regression-report.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
relentless-pursuit authored Dec 24, 2024
1 parent 038e050 commit 1776bdf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/regression-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ jobs:
}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FOLDER: ${{ github.workspace }}/.ci-temp/config
BASE_TEST_CONFIGS_URL: ${{ env.BASE_TEST_CONFIGS_URL }}
run: |
mkdir -p .ci-temp
mkdir -p "$CONFIG_FOLDER"
Expand All @@ -434,14 +435,16 @@ jobs:
cat .ci-temp/diff_config.xml
echo "----------------------------"
# Find all headerFile properties using xmllint
CONFIG_DIR=$(dirname "$DIFF_CONFIG_LINK")
# Get the config bundle path from the config link
CONFIG_BUNDLE=$(echo "$DIFF_CONFIG_LINK" | sed "s|$BASE_TEST_CONFIGS_URL/||" | sed 's|/config.xml||')
# Download java.header from the same directory as config.xml
echo "Downloading java.header from $CONFIG_DIR/java.header"
curl -f -o "$CONFIG_FOLDER/java.header" "$CONFIG_DIR/java.header"
HEADER_URL="$BASE_TEST_CONFIGS_URL/$CONFIG_BUNDLE/java.header"
echo "Downloading java.header from $HEADER_URL"
curl -f -o "$CONFIG_FOLDER/java.header" "$HEADER_URL"
if [ $? -ne 0 ]; then
echo "Failed to download: $CONFIG_DIR/java.header"
echo "Failed to download: $HEADER_URL"
exit 1
fi
Expand Down

0 comments on commit 1776bdf

Please # to comment.