Add workaround to get tagged version in GitHub workflow script
This commit is contained in:
2
.github/workflows/jar.yaml
vendored
2
.github/workflows/jar.yaml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
run: sudo apt install default-jdk
|
||||
|
||||
- name: Set env
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
run: echo "RELEASE_VERSION=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
|
||||
|
||||
- name: Build
|
||||
run: PKG_VER_TAG=$RELEASE_VERSION ./build.sh host-jar "release"
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import com.zerotier.sockets.*;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.math.BigInteger;
|
||||
import java.net.InetAddress;
|
||||
import java.net.DatagramPacket;
|
||||
import java.net.InetAddress;
|
||||
|
||||
public class selftest {
|
||||
public static void main(String[] args)
|
||||
|
||||
Reference in New Issue
Block a user