From 7cad558204ca91d36db7ce17d4f12e1dd87d260a Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 28 Aug 2021 19:36:15 +0000 Subject: [PATCH] File sync from s4u/.github - commons files for setup-maven-action --- .github/workflows/auto-approve.yml | 25 +++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 21 +++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/auto-approve.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 0000000..e834cbb --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -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 }}" diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..be63f51 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -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 }}