From 264a4b4eba82d7d461fb098ef08c20152480a8b8 Mon Sep 17 00:00:00 2001 From: "obed.vazquez" Date: Fri, 21 Nov 2025 05:01:15 -0600 Subject: [PATCH] fix: chain workflows and bump version to 1.0.1 --- .github/workflows/detect-version-and-tag.yml | 13 +++++++++++++ .github/workflows/publish-to-central.yml | 1 + README.md | 4 ++-- pom.xml | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/detect-version-and-tag.yml b/.github/workflows/detect-version-and-tag.yml index 9134c9a..acc3643 100644 --- a/.github/workflows/detect-version-and-tag.yml +++ b/.github/workflows/detect-version-and-tag.yml @@ -11,6 +11,11 @@ jobs: permissions: contents: write + outputs: + release: ${{ steps.decide.outputs.release }} + + + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -55,3 +60,11 @@ jobs: generate_release_notes: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + publish-release: + needs: detect-version + if: needs.detect-version.outputs.release == 'true' + uses: ./.github/workflows/publish-to-central.yml + secrets: inherit + + diff --git a/.github/workflows/publish-to-central.yml b/.github/workflows/publish-to-central.yml index 178f2e3..33a3de4 100644 --- a/.github/workflows/publish-to-central.yml +++ b/.github/workflows/publish-to-central.yml @@ -1,6 +1,7 @@ name: Publish to Maven Central on: + workflow_call: push: tags: - "v*" diff --git a/README.md b/README.md index dbef49e..3fe16b8 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A lightweight library containing shared and generic utility classes for Java-bas ## 1) What is this repository for? ### 1.1) Quick summary -Version: `1.0.0` +Version: `1.0.1` **White_Utils** is a public Java library that provides standardized and generic utility classes to simplify common operations such as logging, formatting, and general helper functions across Java and Maven projects. It is published for public consumption and is also used as a standard within White Organization. @@ -25,7 +25,7 @@ WhiteUtils is designed to be as generic and dependency-minimal as possible so it com.whiteorganization white-utils - 1.0.0 + 1.0.1 ``` diff --git a/pom.xml b/pom.xml index b4ef5ec..06bcc7f 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ io.github.whiteorganization white-utils - 1.0.0 + 1.0.1 ${project.groupId}:${project.artifactId} A lightweight library containing shared and generic utility classes for Java-based projects. https://github.com/WhiteOrganization/white-utils