From ab55d71dff0805547a3af92082db38eee4bed017 Mon Sep 17 00:00:00 2001 From: Robert Stoll Date: Mon, 28 Oct 2024 23:05:59 +0100 Subject: [PATCH] move submission to own workflow as a skipped job irritates --- .github/workflows/quality-assurance.yml | 13 ------------- .github/workflows/submit-dependencies.yml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/submit-dependencies.yml diff --git a/.github/workflows/quality-assurance.yml b/.github/workflows/quality-assurance.yml index e457b1f..5c577e5 100644 --- a/.github/workflows/quality-assurance.yml +++ b/.github/workflows/quality-assurance.yml @@ -46,16 +46,3 @@ jobs: - name: "build using jdk ${{ matrix.java_version }}" run: ./gradlew build - - dependency-submission: - if: github.ref == 'refs/heads/main' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: 17 - - - name: Generate and submit dependency graph - uses: gradle/actions/dependency-submission@v4 diff --git a/.github/workflows/submit-dependencies.yml b/.github/workflows/submit-dependencies.yml new file mode 100644 index 0000000..b0b974c --- /dev/null +++ b/.github/workflows/submit-dependencies.yml @@ -0,0 +1,19 @@ +name: "Submit Gradle Dependencies" +on: + push: + branches: + - 'main' + +jobs: + dependency-submission: + name: "submit gradle dependencies" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + + - name: Generate and submit dependency graph + uses: gradle/actions/dependency-submission@v4