Skip to content

Commit

Permalink
attempt to fix errors
Browse files Browse the repository at this point in the history
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
  • Loading branch information
GumpacG committed Sep 18, 2024
1 parent 5902286 commit 6833c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/java-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,15 @@ jobs:
id: port
run: |
if ${{ matrix.host.OS == 'ubuntu'}}; then
apt install net-tools
sudo apt install net-tools
while
port=$(shuf -n 1 -i 40000-65000)
netstat -atun | grep -q "$port"
do
continue
done
else
comm -23 <(seq 49152 65535 | sort) <(awk '{print $4}' | cut -d':' -f2 | sort -u) | shuf | head -n 1 >> $port
export port=`comm -23 <(seq 49152 65535 | sort) <(awk '{print $4}' | cut -d':' -f2 | sort -u) | shuf | head -n 1`
fi
echo "PORT=$port" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 6833c42

Please sign in to comment.