Skip to content

Commit

Permalink
upgrade shared gha used, add dependabot, release drafter
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Lamy <[email protected]>
  • Loading branch information
olamy committed Feb 13, 2024
1 parent f41ccef commit 324ad85
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
19 changes: 19 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 5 additions & 5 deletions .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]'
13 changes: 13 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -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 }}
15 changes: 15 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 324ad85

Please sign in to comment.