Skip to content

Commit

Permalink
update workflows and dependabot config
Browse files Browse the repository at this point in the history
  • Loading branch information
h1dden-da3m0n committed Apr 30, 2021
1 parent a850845 commit 96e1576
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
23 changes: 8 additions & 15 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/upload-release-artifact.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Upload release artifact

on:
release:
types: [ released ]
push:
tags:
- '*'

env:
ARTIFACT_ID: rest-list-parameter
Expand All @@ -12,6 +13,14 @@ jobs:
name: Build and upload artifact
runs-on: ubuntu-latest
steps:
- name: Update Release Draft
uses: release-drafter/[email protected]
id: release-drafter
with:
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v2

- name: Set up JDK 11
Expand Down Expand Up @@ -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

0 comments on commit 96e1576

Please sign in to comment.