|
|
|
@ -6,13 +6,13 @@ on:
|
|
|
|
|
- develop
|
|
|
|
|
- main
|
|
|
|
|
paths-ignore:
|
|
|
|
|
- 'src/Sonarr.Api.*/openapi.json'
|
|
|
|
|
- "src/Sonarr.Api.*/openapi.json"
|
|
|
|
|
pull_request:
|
|
|
|
|
branches:
|
|
|
|
|
- develop
|
|
|
|
|
paths-ignore:
|
|
|
|
|
- 'src/NzbDrone.Core/Localization/Core/**'
|
|
|
|
|
- 'src/Sonarr.Api.*/openapi.json'
|
|
|
|
|
- "src/NzbDrone.Core/Localization/Core/**"
|
|
|
|
|
- "src/Sonarr.Api.*/openapi.json"
|
|
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
@ -22,7 +22,7 @@ env:
|
|
|
|
|
FRAMEWORK: net6.0
|
|
|
|
|
RAW_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
|
|
|
|
SONARR_MAJOR_VERSION: 4
|
|
|
|
|
VERSION: 4.0.6
|
|
|
|
|
VERSION: 4.0.7
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
backend:
|
|
|
|
@ -228,7 +228,15 @@ jobs:
|
|
|
|
|
|
|
|
|
|
notify:
|
|
|
|
|
name: Discord Notification
|
|
|
|
|
needs: [backend, frontend, unit_test, unit_test_postgres, integration_test, deploy]
|
|
|
|
|
needs:
|
|
|
|
|
[
|
|
|
|
|
backend,
|
|
|
|
|
frontend,
|
|
|
|
|
unit_test,
|
|
|
|
|
unit_test_postgres,
|
|
|
|
|
integration_test,
|
|
|
|
|
deploy,
|
|
|
|
|
]
|
|
|
|
|
if: ${{ !cancelled() && (github.ref_name == 'develop' || github.ref_name == 'main') }}
|
|
|
|
|
env:
|
|
|
|
|
STATUS: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
|
|
|
|
@ -239,10 +247,10 @@ jobs:
|
|
|
|
|
uses: tsickert/discord-webhook@v6.0.0
|
|
|
|
|
with:
|
|
|
|
|
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
|
|
|
|
username: 'GitHub Actions'
|
|
|
|
|
avatar-url: 'https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png'
|
|
|
|
|
username: "GitHub Actions"
|
|
|
|
|
avatar-url: "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"
|
|
|
|
|
embed-title: "${{ github.workflow }}: ${{ env.STATUS == 'success' && 'Success' || 'Failure' }}"
|
|
|
|
|
embed-url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
|
|
|
|
|
embed-url: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
|
|
|
|
embed-description: |
|
|
|
|
|
**Branch** ${{ github.ref }}
|
|
|
|
|
**Build** ${{ needs.backend.outputs.version }}
|
|
|
|
|