kou commented on PR #14496:
URL: https://github.com/apache/arrow/pull/14496#issuecomment-1294064352

   Ah, how about updating timestamp of the `X.Y.Z-SNAPSHOT` directory when we 
update artifacts under the `X.Y.Z-SNAPSHOT` directory?
   
   ```diff
   diff --git a/.github/workflows/java_nightly.yml 
b/.github/workflows/java_nightly.yml
   index b47306eec8..c9b9ba1d71 100644
   --- a/.github/workflows/java_nightly.yml
   +++ b/.github/workflows/java_nightly.yml
   @@ -110,6 +110,7 @@ jobs:
              for LIBRARY in $(ls binaries/$PREFIX/java-jars | grep -E 
'.jar|.pom' | grep SNAPSHOT); do
                [[ $LIBRARY =~ $PATTERN_TO_GET_LIB_AND_VERSION ]]
                mkdir -p 
repo/org/apache/arrow/${BASH_REMATCH[1]}/${BASH_REMATCH[2]}
   +            touch 
repo/org/apache/arrow/${BASH_REMATCH[1]}/${BASH_REMATCH[2]}
                mkdir -p repo/org/apache/arrow/${BASH_REMATCH[1]}/${DATE}
                # Copy twice to maintain a latest snapshot and some earlier 
versions
                cp binaries/$PREFIX/java-jars/$LIBRARY 
repo/org/apache/arrow/${BASH_REMATCH[1]}/${BASH_REMATCH[2]}
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to