diff --git a/.github/actions/main-build/action.yml b/.github/actions/main-build/action.yml index 8d282cd1502f..1de62dd7267c 100644 --- a/.github/actions/main-build/action.yml +++ b/.github/actions/main-build/action.yml @@ -5,10 +5,6 @@ inputs: required: true description: Gradle arguments default: build - dependency-graph: - required: false - description: 'see https://github.com/gradle/gradle-build-action#enable-dependency-graph-generation-for-a-workflow' - default: disabled runs: using: "composite" steps: @@ -16,7 +12,6 @@ runs: - uses: ./.github/actions/run-gradle with: arguments: ${{ inputs.arguments }} - dependency-graph: ${{ inputs.dependency-graph }} - uses: actions/upload-artifact@v4 if: ${{ always() }} with: diff --git a/.github/actions/run-gradle/action.yml b/.github/actions/run-gradle/action.yml index da52b9aad5e8..856f81a89947 100644 --- a/.github/actions/run-gradle/action.yml +++ b/.github/actions/run-gradle/action.yml @@ -5,10 +5,6 @@ inputs: required: true description: Gradle arguments default: build - dependency-graph: - required: false - description: 'see https://github.com/gradle/gradle-build-action#enable-dependency-graph-generation-for-a-workflow' - default: disabled runs: using: "composite" steps: @@ -21,7 +17,6 @@ runs: env: JAVA_HOME: ${{ steps.setup-gradle-jdk.outputs.path }} with: - dependency-graph: ${{ inputs.dependency-graph }} arguments: | -Porg.gradle.java.installations.auto-download=false -Pjunit.develocity.predictiveTestSelection.enabled=${{ github.event_name == 'pull_request' }} diff --git a/.github/workflows/gradle-dependency-submission.yml b/.github/workflows/gradle-dependency-submission.yml new file mode 100644 index 000000000000..d2c4433356d4 --- /dev/null +++ b/.github/workflows/gradle-dependency-submission.yml @@ -0,0 +1,25 @@ +name: Gradle Dependency Submission + +on: + push: + branches: + - main + +permissions: + contents: write + +jobs: + dependency-submission: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + - name: Generate and submit dependency graph + uses: gradle/actions/dependency-submission@v3 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0ba263e9f868..6eb2ae1b11f3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,6 @@ jobs: - name: Build uses: ./.github/actions/main-build with: - dependency-graph: generate-and-submit arguments: | -Ptesting.enableJaCoCo build