Skip to content

Commit

Permalink
Merge pull request #58 from mojohaus/github_actions
Browse files Browse the repository at this point in the history
[#57] Add GitHub workflows, release-drafter, dependabot.
  • Loading branch information
bmarwell authored Oct 26, 2023
2 parents 0dc3e1f + cb9b2bb commit 8f4bb94
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 1 deletion.
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: 'wagon-maven-plugin-$RESOLVED_VERSION'
version-resolver:
major:
labels:
- major
minor:
labels:
- minor
- enhancement
patch:
labels:
- patch
default: patch
template: |
## Changes
$CHANGES
34 changes: 34 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: GitHub CI

on: [push, pull_request]

jobs:
build:
name: Verify
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v3
with:
ff-goal: '-P run-its install' # site use project version for reporting
verify-goal: '-P run-its install' # should be the same as for first build

deploy:
name: Deploy
needs: build
uses: mojohaus/.github/.github/workflows/maven-deploy.yml@master
secrets: inherit
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 }}
19 changes: 19 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Close stale PR and Issues'
on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
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-pr-stale: 365
days-before-pr-close: 30
stale-issue-message: 'This issue 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.'
close-issue-reason: 'not_planned'
days-before-issue-stale: 365
days-before-issue-close: 30

1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.7</version>
<configuration>
<attributes>
<wagonApiVersion>${wagon.api.version}</wagonApiVersion>
Expand Down

0 comments on commit 8f4bb94

Please sign in to comment.