INNER CODE UNIT · Java

nextVersion

graphql-java-kickstart/graphql-java-servlet · .github/tag-release.sh:26

      nextVersion=$((BASH_REMATCH[4] + 1))
      nextVersion="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}.${nextVersion}-SNAPSHOT"
    else
      nextVersion=$((BASH_REMATCH[2] + 1))
      nextVersion="${BASH_REMATCH[1]}.${nextVersion}-SNAPSHOT"
    fi

    echo "Next version: ${nextVersion}"
    sed -i -E "s/^version(\s)?=.*/version=${nextVersion}/" gradle.properties
    git commit -a -m "Bumped version for next release"
  else
    echo "No semantic version and therefore cannot publish to maven repository: '${APP_VERSION}'"
  fi
}

git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…