From cf73d73b283e73d324ea707aa2b4d4e60bf2eee1 Mon Sep 17 00:00:00 2001 From: Silverlan Date: Sat, 6 Jul 2024 10:28:57 +0200 Subject: [PATCH 1/3] ci: add discord-notification workflow --- .github/workflows/discord-notification.yml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/discord-notification.yml diff --git a/.github/workflows/discord-notification.yml b/.github/workflows/discord-notification.yml new file mode 100644 index 000000000..63db71ef0 --- /dev/null +++ b/.github/workflows/discord-notification.yml @@ -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 }}" From 1921053a4fbe6b4b4a7188b4027b46f55f26434c Mon Sep 17 00:00:00 2001 From: Silverlan Date: Sat, 6 Jul 2024 10:29:48 +0200 Subject: [PATCH 2/3] ci: windows build workflow now dispatches discord notification on success --- .github/workflows/pragma-windows-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pragma-windows-ci.yml b/.github/workflows/pragma-windows-ci.yml index 1b6dfb5ac..fa1cbd025 100644 --- a/.github/workflows/pragma-windows-ci.yml +++ b/.github/workflows/pragma-windows-ci.yml @@ -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\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() From 748f94856f7d4530afdf7dc82aeb1d49d389772e Mon Sep 17 00:00:00 2001 From: Silverlan Date: Sat, 6 Jul 2024 13:25:47 +0200 Subject: [PATCH 3/3] build: update submodule "virtual_reality" --- build_scripts/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_scripts/build.py b/build_scripts/build.py index 9cc4cf306..ee95f1f42 100644 --- a/build_scripts/build.py +++ b/build_scripts/build.py @@ -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")