Change sleep command for race condition handling

Updated sleep command to use random value from /dev/urandom.
This commit is contained in:
JieXu 2026-04-25 15:16:02 +08:00 committed by GitHub
parent c8d46e43e9
commit edc7fa561e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,7 +63,7 @@ jobs:
run: ./package-osx.sh macos-$Arch v2rayN-macos-$Arch ${{ inputs.release_tag }} run: ./package-osx.sh macos-$Arch v2rayN-macos-$Arch ${{ inputs.release_tag }}
- name: Sleep for race condition between matrix jobs - name: Sleep for race condition between matrix jobs
run: sleep $(awk 'BEGIN { srand(); printf "%.3f", rand()*2 }') run: sleep "$(od -An -N2 -tu2 /dev/urandom|awk '{printf "%.2f",$1/10922}')"
- name: Upload dmg to release - name: Upload dmg to release
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2