diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f2e0496f..542371a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,18 +6,14 @@ on: - completed jobs: - # Jobs will run only and only if the build action was successful - check-build: + # 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' }} - - # Only commits containing [RELEASE] will trigger this action - check-commit: - runs-on: windows-latest - needs: check-build steps: - name: Checkout code - - uses: actions/checkout@v3 + uses: actions/checkout@v3 - name: Get Last Commit run: | @@ -56,7 +52,7 @@ jobs: steps: - name: Checkout code - - uses: actions/checkout@v3 + uses: actions/checkout@v3 - name: Set up JDK 21 uses: actions/setup-java@v3