Skip to content

Commit

Permalink
💚 I give up
Browse files Browse the repository at this point in the history
Signed-off-by: palexdev <[email protected]>
  • Loading branch information
palexdev committed Jun 7, 2024
1 parent 6498261 commit 5421608
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5421608

Please sign in to comment.