From ccd147d1fcd0851f8c824469650908e8f835a5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondrej=20F=C3=BChrer?= <10830505+ondrejfuhrer@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:06:23 +0100 Subject: [PATCH 1/2] Add repository maintenance workflow --- .github/workflows/repository-maintenance.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/repository-maintenance.yml diff --git a/.github/workflows/repository-maintenance.yml b/.github/workflows/repository-maintenance.yml new file mode 100644 index 0000000..6ffa54e --- /dev/null +++ b/.github/workflows/repository-maintenance.yml @@ -0,0 +1,13 @@ +name: Repository Maintenance + +on: + push: + workflow_dispatch: + +jobs: + maintenance_workflow: + uses: getyourguide/java-actions/.github/workflows/reusable-java-repo-maintenance-workflow.yml@v1.1.0 + name: Maintenance + secrets: + CODEARTIFACT_AUTH_TOKEN: ${{ secrets.CODEARTIFACT_AUTH_TOKEN }} + From 9484183478a92b28c24ed87c8b53307c84b3e400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondrej=20F=C3=BChrer?= <10830505+ondrejfuhrer@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:11:52 +0100 Subject: [PATCH 2/2] Use gradle action directly --- .github/workflows/repository-maintenance.yml | 25 +++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/repository-maintenance.yml b/.github/workflows/repository-maintenance.yml index 6ffa54e..e29d079 100644 --- a/.github/workflows/repository-maintenance.yml +++ b/.github/workflows/repository-maintenance.yml @@ -2,12 +2,25 @@ name: Repository Maintenance on: push: + branches: [ 'main' ] workflow_dispatch: jobs: - maintenance_workflow: - uses: getyourguide/java-actions/.github/workflows/reusable-java-repo-maintenance-workflow.yml@v1.1.0 - name: Maintenance - secrets: - CODEARTIFACT_AUTH_TOKEN: ${{ secrets.CODEARTIFACT_AUTH_TOKEN }} - + dependency-submission: + name: Dependency Submission + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4.2.1 + - uses: actions/setup-java@v4.4.0 + name: Setup Java + with: + distribution: temurin + java-version: 17 + - name: Generate and submit dependency graph + uses: gradle/actions/dependency-submission@v4.1.0 + with: + gradle-version: wrapper + dependency-graph: generate-and-submit + # Include only relevant configurations + dependency-graph-include-configurations: '(implementation|api|compileClasspath|runtimeClasspath)'