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 1776bdf commit d5f72a1
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/regression-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ 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 @@ -435,20 +434,16 @@ jobs:
cat .ci-temp/diff_config.xml
echo "----------------------------"
# 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||')
# Copy java.header from checkstyle's config directory
echo "Copying java.header from checkstyle config directory"
cp "${{ github.workspace }}/.ci-temp/checkstyle/config/java.header" "$CONFIG_FOLDER/java.header"
# Download java.header from the same directory as config.xml
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: $HEADER_URL"
echo "Failed to copy java.header"
exit 1
fi
echo "Contents of downloaded file java.header:"
echo "Contents of copied file java.header:"
echo "----------------------------"
cat "$CONFIG_FOLDER/java.header"
echo "----------------------------"
Expand Down

0 comments on commit d5f72a1

Please # to comment.