diff --git a/.github/workflows/depencency-submission.yml b/.github/workflows/depencency-submission.yml new file mode 100644 index 00000000..0dc38be0 --- /dev/null +++ b/.github/workflows/depencency-submission.yml @@ -0,0 +1,23 @@ +name: Dependencies +on: + push: + +jobs: + build: + name: Dependencies + runs-on: ubuntu-latest + permissions: # The Dependency Submission API requires write permission + contents: write + steps: + - name: 'Checkout Repository' + uses: actions/checkout@v3 + + - name: Run snapshot action + uses: mikepenz/gradle-dependency-submission@v0.8.6 + with: + gradle-build-module: |- + :pgpainless-core + :pgpainless-sop + :pgpainless-cli + sub-module-mode: |- + INDIVIDUAL_DEEP diff --git a/.github/workflows/gradle_push.yml b/.github/workflows/gradle_push.yml index 62c32ad8..e4624726 100644 --- a/.github/workflows/gradle_push.yml +++ b/.github/workflows/gradle_push.yml @@ -9,14 +9,14 @@ # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle -name: Build +name: Push on: push: branches: [ "main" ] permissions: - contents: write + contents: read jobs: build: @@ -28,8 +28,6 @@ jobs: with: java-version: '11' distribution: 'temurin' - - name: Gradle Dependency Submission - uses: mikepenz/gradle-dependency-submission@v0.8.6 - name: Build, Check and Coverage uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 env: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index cc1ca4e0..4d22c22f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -9,7 +9,7 @@ # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle -name: Build +name: PR on: pull_request: