Skip to content

Commit

Permalink
Fix changelog by separating dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed Mar 24, 2024
1 parent f3db06e commit e1230b3
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,7 @@ jobs:
java-version: ${{ matrix.java }}
distribution: 'temurin'

- name: Build with Gradle and generate dependency Graph
if: ${{github.ref == 'refs/heads/version/1.20.1' && github.event_name != 'pull_request'}}
uses: gradle/gradle-build-action@v2
with:
arguments: build
dependency-graph: 'generate-and-submit'

- name: Build with Gradle
if: ${{github.ref != 'refs/heads/version/1.20.1' || github.event_name == 'pull_request'}}
uses: gradle/gradle-build-action@v2
with:
arguments: build
Expand All @@ -70,6 +62,25 @@ jobs:
with:
name: build-changelog
path: prepared_changelog.md

dependencies:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4

- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'

- name: Build with Gradle and generate dependency Graph
if: ${{github.ref == 'refs/heads/version/1.20.1' && github.event_name != 'pull_request'}}
uses: gradle/gradle-build-action@v2
with:
dependency-graph: 'generate-and-submit'

publish:
if: ${{ github.event.inputs.publish }}
needs:
Expand Down

0 comments on commit e1230b3

Please sign in to comment.