File sync from s4u/.github - commons files for setup-maven-action

This commit is contained in:
GitHub Action
2021-08-28 19:36:15 +00:00
parent 44a9912507
commit 7cad558204
2 changed files with 46 additions and 0 deletions

25
.github/workflows/auto-approve.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Auto approve
on:
pull_request_target
jobs:
auto-approve:
runs-on: ubuntu-latest
steps:
- uses: alexwilson/enable-github-automerge-action@1.0.0
if: >
github.actor == 'dependabot[bot]'
|| github.actor == 'dependabot-preview[bot]'
with:
merge-method: "REBASE"
github-token: "${{ secrets.TECH_TOKEN }}"
- uses: hmarr/auto-approve-action@v2.1.0
if: >
github.actor == 'dependabot[bot]'
|| github.actor == 'dependabot-preview[bot]'
|| github.actor == 'slawekjaranowski'
with:
github-token: "${{ secrets.TECH_TOKEN }}"

21
.github/workflows/release-drafter.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Release Drafter
on:
push:
branches:
- 'master'
jobs:
update_release_draft:
name: Update Release Draft
runs-on: ubuntu-latest
concurrency: release-drafter
if: >
github.repository_owner == 's4u'
&& !startsWith(github.event.head_commit.message , '[maven-release-plugin]')
steps:
- uses: release-drafter/release-drafter@v5.15.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}