From 09bf5be50ea6d8883ccae75f7af24d0c85dbce7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnau=20Alc=C3=A1zar=20Lleopart?= Date: Mon, 28 Oct 2024 17:36:59 +0100 Subject: [PATCH 1/2] Add GHA to submit dependencies to dependabot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Arnau Alcázar Lleopart --- .../workflows/generate-send-dependencies.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/generate-send-dependencies.yml diff --git a/.github/workflows/generate-send-dependencies.yml b/.github/workflows/generate-send-dependencies.yml new file mode 100644 index 0000000000..4b1ef5bdbc --- /dev/null +++ b/.github/workflows/generate-send-dependencies.yml @@ -0,0 +1,27 @@ +name: Generate and submit dependency graph for nextflow +on: + # for testing purposes, to be removed later + pull_request: + +permissions: + contents: write + +jobs: + dependency-submission: + runs-on: ubuntu-latest + strategy: + matrix: + components: ["nextflow", "plugins:nf-google", "plugins:nf-amazon", "plugins:nf-azure", "plugins:nf-cloudcache", "plugins:nf-codecommit", "plugins:nf-console", "plugins:nf-tower", "plugins:nf-wave"] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + + - name: Generate and submit dependency graph for nextflow + uses: gradle/actions/dependency-submission@v4 + with: + dependency-resolution-task: ":${{ matrix.components }}:dependencies" + additional-arguments: "--configuration runtimeClasspath" + dependency-graph: generate-and-submit From 6a9c00cef76c9f866f1d2b948c679b07c11912d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnau=20Alc=C3=A1zar=20Lleopart?= Date: Mon, 28 Oct 2024 17:43:34 +0100 Subject: [PATCH 2/2] Trigger the action on master push MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Arnau Alcázar Lleopart --- .github/workflows/generate-send-dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate-send-dependencies.yml b/.github/workflows/generate-send-dependencies.yml index 4b1ef5bdbc..639b28a7ad 100644 --- a/.github/workflows/generate-send-dependencies.yml +++ b/.github/workflows/generate-send-dependencies.yml @@ -1,7 +1,7 @@ name: Generate and submit dependency graph for nextflow on: - # for testing purposes, to be removed later - pull_request: + push: + branches: ['master'] permissions: contents: write