diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8ba706f9b..b7fec3476 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -45,10 +45,10 @@ jobs: # Verify file exists if [ -f "$EPUBCHECK_JAR" ]; then - echo "JAR file exists at: $EPUBCHECK_JAR" + echo "JAR file exists at: $EPUBCHECK_JAR" else - echo "JAR file not found at: $EPUBCHECK_JAR" - exit 1 + echo "JAR file not found at: $EPUBCHECK_JAR" + exit 1 fi # Set epubcheck path using working approach @@ -56,23 +56,11 @@ jobs: echo "EPUBCHECK_PATH=$EPUBCHECK_JAR" >> "$GITHUB_ENV" # Debug output - echo "Debug: Setting EPUBCHECK_PATH to: $EPUBCHECK_JAR" + echo "Debug: EPUBCHECK_JAR value is: $EPUBCHECK_JAR" - # Verify the value - echo "Debug: Current GITHUB_ENV contents:" - cat "$GITHUB_ENV" - - # Show current value - echo "Current environment variables:" - env | grep EPUBCHECK - - # Setup full path to jar file - # echo "EPUBCHECK_PATH=%GITHUB_WORKSPACE%\epubcheck\epubcheck-5.2.0\epubcheck.jar" >> $GITHUB_ENV - # cmd.exe /c "echo Set EPUBCHECK_PATH to: %GITHUB_WORKSPACE%\epubcheck\epubcheck-5.2.0\epubcheck.jar" - - # Check if file exists - # cmd.exe /c "if exist ${{ github.workspace }}\epubcheck\epubcheck-5.2.0\epubcheck.jar (echo JAR file found) else (echo JAR file not found)" - epubcheck-path: "${{ github.workspace }}\epubcheck\epubcheck-5.2.0\epubcheck.jar" + # Show current directory structure + ls -la "$GITHUB_WORKSPACE\epubcheck\epubcheck-5.2.0" + epubcheck-path: "$EPUBCHECK_JAR" # - os: macos-latest # install-epubcheck: brew install epubcheck