From 324ad8541a446e5f2f98b72dcfab970b37c108a8 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 13 Feb 2024 16:24:39 +1000 Subject: [PATCH] upgrade shared gha used, add dependabot, release drafter Signed-off-by: Olivier Lamy --- .github/dependabot.yml | 10 ++++++++++ .github/release-drafter.yml | 19 +++++++++++++++++++ .github/workflows/maven-verify.yml | 10 +++++----- .github/workflows/release-drafter.yml | 13 +++++++++++++ .github/workflows/stale.yml | 15 +++++++++++++++ 5 files changed, 62 insertions(+), 5 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b76b895 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "maven" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..7a1c0bd --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,19 @@ +_extends: .github +name-template: '$RESOLVED_VERSION' +tag-template: 'jdepend-maven-plugin-$RESOLVED_VERSION' +version-resolver: + major: + labels: + - major + minor: + labels: + - minor + - enhancement + patch: + labels: + - patch + default: patch +template: | + ## Changes + + $CHANGES \ No newline at end of file diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml index c9ade96..72c6bdb 100644 --- a/.github/workflows/maven-verify.yml +++ b/.github/workflows/maven-verify.yml @@ -24,8 +24,8 @@ on: jobs: build: name: Verify - uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v2 - with: - os-matrix: '[ "ubuntu-latest" ]' - jdk-matrix: '[ "17" ]' - jdk-distribution-matrix: '[ "temurin" ]' + uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v3 +# with: +# os-matrix: '[ "ubuntu-latest" ]' +# jdk-matrix: '[ "17" ]' +# jdk-distribution-matrix: '[ "temurin" ]' diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..c8ac4b7 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,13 @@ +name: Release Drafter +on: + push: + branches: + - master + workflow_dispatch: +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..e133d3f --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,15 @@ +name: 'Close stale PR' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v8 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-pr-message: 'This PR is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 30 days.' + days-before-stale: 365 + days-before-pr-close: 30