From 96e1576e78b13caf54e7c8bf6f961dd86839b5b2 Mon Sep 17 00:00:00 2001 From: h1dden-da3m0n <33120068+h1dden-da3m0n@users.noreply.github.com> Date: Fri, 30 Apr 2021 20:05:39 +0200 Subject: [PATCH] update workflows and dependabot config --- .github/dependabot.yml | 23 +++++++------------ .github/workflows/update-release-draft.yml | 1 + .github/workflows/upload-release-artifact.yml | 15 +++++++++--- 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b93345c..a6dad2d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,27 +1,20 @@ version: 2 updates: - - package-ecosystem: "maven" - directory: "/" + - package-ecosystem: 'maven' + directory: '/' schedule: - interval: "weekly" - day: "wednesday" - time: "10:00" - assignees: - - "h1dden-da3m0n" + interval: 'weekly' + day: 'wednesday' open-pull-requests-limit: 10 commit-message: prefix: fix - prefix-development: chore include: scope - - package-ecosystem: "github-actions" - directory: "/" + - package-ecosystem: 'github-actions' + directory: '/' schedule: - interval: "weekly" - day: "wednesday" - time: "10:00" - assignees: - - "h1dden-da3m0n" + interval: 'weekly' + day: 'wednesday' open-pull-requests-limit: 10 commit-message: prefix: chore diff --git a/.github/workflows/update-release-draft.yml b/.github/workflows/update-release-draft.yml index 9f50f7d..ab4273c 100644 --- a/.github/workflows/update-release-draft.yml +++ b/.github/workflows/update-release-draft.yml @@ -8,6 +8,7 @@ jobs: update_release_draft: name: Update release draft runs-on: ubuntu-latest + if: ${{ ! contains(github.event.head_commit.message, '[maven-release-plugin] prepare release') }} steps: - name: Update Release Draft uses: release-drafter/release-drafter@v5.15.0 diff --git a/.github/workflows/upload-release-artifact.yml b/.github/workflows/upload-release-artifact.yml index 09eee43..ba2008e 100644 --- a/.github/workflows/upload-release-artifact.yml +++ b/.github/workflows/upload-release-artifact.yml @@ -1,8 +1,9 @@ name: Upload release artifact on: - release: - types: [ released ] + push: + tags: + - '*' env: ARTIFACT_ID: rest-list-parameter @@ -12,6 +13,14 @@ jobs: name: Build and upload artifact runs-on: ubuntu-latest steps: + - name: Update Release Draft + uses: release-drafter/release-drafter@v5.15.0 + id: release-drafter + with: + publish: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v2 - name: Set up JDK 11 @@ -48,7 +57,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ github.event.release.upload_url }} + upload_url: ${{ steps.release-drafter.outputs.upload_url }} asset_path: ./${{ steps.set-variables.outputs.asset-path }} asset_name: ${{ steps.set-variables.outputs.asset-name }} asset_content_type: application/java-archive \ No newline at end of file