diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml deleted file mode 100644 index 6452bc2e..00000000 --- a/.github/workflows/versions.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Versions -on: - release: - types: [ published ] - -jobs: - deploy: - name: Versions test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Make gradle executable - run: chmod +x gradlew - - name: Print version with Gradle - id: gradle - uses: eskatos/gradle-command-action@v1 - with: - arguments: outputVersionDebug - env: - WHATEVER: test diff --git a/build.gradle.kts b/build.gradle.kts index 467efe83..0aee8beb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -45,7 +45,7 @@ plugins { group = "dev.stalla" val tagName = System.getenv("GITHUB_REF")?.let { ref -> - if (ref.startsWith("ref/tags/")) { + if (ref.startsWith("refs/tags/")) { ref.substringAfterLast('/') } else { null