From 54216087029f3542863289784069377eb6e61702 Mon Sep 17 00:00:00 2001 From: palexdev Date: Sat, 8 Jun 2024 00:21:52 +0200 Subject: [PATCH] :green_heart: I give up Signed-off-by: palexdev --- .github/workflows/gradle.yml | 2 +- .github/workflows/release.yml | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index fef619b6..90ca9766 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,7 +1,7 @@ # This workflow will build a Java project with Gradle # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle -name: Build rewrite +name: 'Build rewrite' on: push: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b4f4bc00..b25f0e09 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,16 +1,14 @@ -name: 'Release new versions' +name: 'Release' on: - workflow_run: - workflows: [ Build rewrite ] + push: + branches: [ rewrite ] + pull_request: branches: [ rewrite ] - types: [ completed ] jobs: - # Only if the build action was successful # Only if last commit contains [RELEASE] check: runs-on: windows-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout code uses: actions/checkout@v3 @@ -48,7 +46,7 @@ jobs: MESSAGE: ${{ needs.check-commit.env.MESSAGE }} MODULES: ${{ needs.check-commit.env.MODULES }} EXECUTABLE: ${{ needs.check-commit.env.EXECUTABLE }} - if: ${{ env.EXECUTABLE == 'true' }} + if: ${{ release.env.EXECUTABLE == 'true' }} steps: - name: Checkout code @@ -63,6 +61,9 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build -x test -x processCSS + - name: Release modules run: | # Iterate over modules