Skip to content

Commit

Permalink
Merge pull request #83 from Silverlan/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverlan authored Jul 6, 2024
2 parents eb27136 + 748f948 commit a598b48
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/discord-notification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Discord Notification

on:
workflow_dispatch:
inputs:
webhook:
type: string
required: true
message:
type: string
required: true

jobs:
test:
name: Discord Notification
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-latest

steps:
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ github.event.inputs.webhook }}
uses: Ilshidur/action-discord@master
with:
args: "${{ github.event.inputs.message }}"
7 changes: 7 additions & 0 deletions .github/workflows/pragma-windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ jobs:
cp -u "files_pragma_deps.txt" artifacts/
cp -u "files_pragma_install.txt" artifacts/
- name: Discord Notifcation
uses: benc-uk/workflow-dispatch@v1
if: ${{ github.repository == 'Silverlan/pragma' }}
with:
workflow: discord-notification.yml
inputs: '{ "webhook": "${{ secrets.PRAGMA_RELEASE_DISCORD_WEBHOOK }}", "message": "A new nightly pre-release build has been generated! It is available for download here:\n<https://github.com/Silverlan/pragma/releases/tag/nightly>\n\nThis is NOT a stable release, use with caution! Only use this version for testing!" }'

- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: always()
Expand Down
2 changes: 1 addition & 1 deletion build_scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ def download_addon(name,addonName,url,commitId=None):
download_addon("model editor","tool_model_editor","https://github.com/Silverlan/pragma_model_editor.git","56d46dacb398fa7540e794359eaf1081c9df1edd")

if with_vr:
download_addon("VR","virtual_reality","https://github.com/Silverlan/PragmaVR.git","a531c84cf56bd121d36eea03c25f8c38eec17872")
download_addon("VR","virtual_reality","https://github.com/Silverlan/PragmaVR.git","d418794fda578b118273942af548e1e597f7e9bf")

if with_pfm:
download_addon("PFM Living Room Demo","pfm_demo_living_room","https://github.com/Silverlan/pfm_demo_living_room.git","4cbecad4a2d6f502b6d9709178883678101f7e2c")
Expand Down

0 comments on commit a598b48

Please sign in to comment.