Skip to content

Commit

Permalink
Update common files
Browse files Browse the repository at this point in the history
  • Loading branch information
micronaut-build authored Jun 8, 2020
1 parent 12436ef commit 7cd9567
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
# and edit them there. Note that it will be sync'ed to all the Micronaut repos
name: Check Dependencies
on:
schedule:
- cron: '0 16 * * MON-FRI'
# schedule:
# - cron: '0 16 * * MON-FRI'
push:
branches:
- master
jobs:
check-dependencies:
if: github.repository == 'micronaut-projects/micronaut-project-template'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -24,3 +28,9 @@ jobs:
java-version: 1.8
- name: Check Dependencies
run: ./gradlew dependencyUpdates
- name: Google Chat Notification
uses: Co-qn/google-chat-notification@releases/v1
with:
name: Check Dependencies
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }}
status: ${{ job.status }}
26 changes: 16 additions & 10 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check if it has release drafter config file
id: check_release_drafter
run: |
has_release_drafter=$([ -f .github/release-drafter.yml ] && echo "true" || echo "false")
echo ::set-output name=has_release_drafter::${has_release_drafter}
# If it has release drafter:
- uses: release-drafter/release-drafter@v5
if: steps.check_release_drafter.outputs.has_release_drafter == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Otherwise:
- name: Export Gradle Properties
if: steps.check_release_drafter.outputs.has_release_drafter == 'false'
uses: micronaut-projects/github-actions/export-gradle-properties@master
- uses: micronaut-projects/github-actions/release-notes@master
if: steps.check_release_drafter.outputs.has_release_drafter == 'false'
id: release_notes
with:
branch: ${{ env.githubBranch }}
- uses: ncipollo/release-action@v1
if: success()
if: steps.check_release_drafter.outputs.has_release_drafter == 'false'
with:
allowUpdates: true
commit: ${{ env.githubBranch }}
Expand All @@ -39,12 +54,3 @@ jobs:
tag: v${{ steps.release_notes.outputs.next_version }}
bodyFile: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}

release_drafter:
runs-on: ubuntu-latest
needs: release_notes
steps:
- uses: release-drafter/release-drafter@v5
if: failure()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7cd9567

Please sign in to comment.