mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 13:11:15 -07:00
Put Discord notification after release
This commit is contained in:
parent
0b77808af6
commit
52e6a44aa4
1 changed files with 27 additions and 27 deletions
54
.github/workflows/publish-installers.yml
vendored
54
.github/workflows/publish-installers.yml
vendored
|
@ -91,33 +91,6 @@ jobs:
|
||||||
name: Tautulli-${{ matrix.os }}-installer
|
name: Tautulli-${{ matrix.os }}-installer
|
||||||
path: Tautulli-${{ matrix.os }}-${{ steps.get_version.outputs.RELEASE_VERSION }}-x64.${{ matrix.ext }}
|
path: Tautulli-${{ matrix.os }}-${{ steps.get_version.outputs.RELEASE_VERSION }}-x64.${{ matrix.ext }}
|
||||||
|
|
||||||
discord:
|
|
||||||
name: Discord Notification
|
|
||||||
needs: build-installer
|
|
||||||
if: always() && github.event_name != 'pull_request'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Get Build Job Status
|
|
||||||
uses: technote-space/workflow-conclusion-action@v1
|
|
||||||
|
|
||||||
- name: Combine Job Status
|
|
||||||
id: status
|
|
||||||
run: |
|
|
||||||
failures=(neutral, skipped, timed_out, action_required)
|
|
||||||
if [[ ${array[@]} =~ $WORKFLOW_CONCLUSION ]]; then
|
|
||||||
echo ::set-output name=status::failure
|
|
||||||
else
|
|
||||||
echo ::set-output name=status::$WORKFLOW_CONCLUSION
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Post Status to Discord
|
|
||||||
uses: sarisia/actions-status-discord@v1
|
|
||||||
with:
|
|
||||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
status: ${{ steps.status.outputs.status }}
|
|
||||||
title: ${{ github.workflow }}
|
|
||||||
nofail: true
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release Installers
|
name: Release Installers
|
||||||
needs: build-installer
|
needs: build-installer
|
||||||
|
@ -181,3 +154,30 @@ jobs:
|
||||||
asset_path: Tautulli-macos-installer/Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}-x64.pkg
|
asset_path: Tautulli-macos-installer/Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}-x64.pkg
|
||||||
asset_name: Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}-x64.pkg
|
asset_name: Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}-x64.pkg
|
||||||
asset_content_type: application/vnd.apple.installer+xml
|
asset_content_type: application/vnd.apple.installer+xml
|
||||||
|
|
||||||
|
discord:
|
||||||
|
name: Discord Notification
|
||||||
|
needs: [build-installer, release]
|
||||||
|
if: always() && github.event_name != 'pull_request'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Get Build Job Status
|
||||||
|
uses: technote-space/workflow-conclusion-action@v1
|
||||||
|
|
||||||
|
- name: Combine Job Status
|
||||||
|
id: status
|
||||||
|
run: |
|
||||||
|
failures=(neutral, skipped, timed_out, action_required)
|
||||||
|
if [[ ${array[@]} =~ $WORKFLOW_CONCLUSION ]]; then
|
||||||
|
echo ::set-output name=status::failure
|
||||||
|
else
|
||||||
|
echo ::set-output name=status::$WORKFLOW_CONCLUSION
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Post Status to Discord
|
||||||
|
uses: sarisia/actions-status-discord@v1
|
||||||
|
with:
|
||||||
|
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
status: ${{ steps.status.outputs.status }}
|
||||||
|
title: ${{ github.workflow }}
|
||||||
|
nofail: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue