Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit a6b0d79

Browse files
authored
fix: nightly version discord message hard to read on PC (#1377)
Co-authored-by: Hien To <tominhhien97@gmail.com>
1 parent f86754e commit a6b0d79

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

.github/workflows/nightly-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
AWS_EC2_METADATA_DISABLED: "true"
125125

126126
noti-discord-nightly-and-update-url-readme:
127-
needs: [build-macos-x64, build-macos-arm64, build-windows-x64, build-linux-x64, get-update-version, set-public-provider, get-cortex-llamacpp-latest-version]
127+
needs: [build-macos-x64, build-macos-arm64, build-windows-x64, build-linux-x64, get-update-version, set-public-provider, get-cortex-llamacpp-latest-version, update-latest-version]
128128
secrets: inherit
129129
if: github.event_name == 'schedule'
130130
uses: ./.github/workflows/template-noti-discord.yaml

.github/workflows/template-noti-discord.yaml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,26 @@ jobs:
2020
- name: Set version to environment variable
2121
run: |
2222
echo "VERSION=${{ inputs.new_version }}" >> $GITHUB_ENV
23+
echo "RUNNER_ID=$GITHUB_RUN_ID" >> $GITHUB_ENV
24+
echo "BUILD_REASON=${{ inputs.build_reason }}" >> $GITHUB_ENV
2325
2426
- name: Notify Discord
25-
uses: Ilshidur/action-discord@master
27+
uses: appleboy/discord-action@v1.0.0
2628
with:
27-
args: |
28-
Cortex.cpp ${{ inputs.build_reason }} build artifact version {{ VERSION }}:
29+
webhook_id: ${{ secrets.WEBHOOK_ID }}
30+
webhook_token: ${{ secrets.WEBHOOK_TOKEN }}
31+
message: |
32+
Cortex.cpp ${{ env.BUILD_REASON }} build artifact version ${{ env.VERSION }}:
2933
- Windows:
30-
- Network Installer: https://delta.jan.ai/cortex/v{{ VERSION }}/windows-amd64/cortex-{{ VERSION }}-windows-amd64-network-installer.exe
31-
- Local Installer: https://delta.jan.ai/cortex/v{{ VERSION }}/windows-amd64/cortex-{{ VERSION }}-windows-amd64-local-installer.exe
34+
- Network Installer: https://delta.jan.ai/cortex/v${{ env.VERSION }}/windows-amd64/cortex-${{ env.VERSION }}-windows-amd64-network-installer.exe
35+
- Local Installer: https://delta.jan.ai/cortex/v${{ env.VERSION }}/windows-amd64/cortex-${{ env.VERSION }}-windows-amd64-local-installer.exe
3236
- macOS Intel:
33-
- Network Installer: https://delta.jan.ai/cortex/v{{ VERSION }}/mac-amd64/cortex-{{ VERSION }}-mac-amd64-network-installer.pkg
34-
- Local Installer: https://delta.jan.ai/cortex/v{{ VERSION }}/mac-amd64/cortex-{{ VERSION }}-mac-amd64-local-installer.pkg
37+
- Network Installer: https://delta.jan.ai/cortex/v${{ env.VERSION }}/mac-amd64/cortex-${{ env.VERSION }}-mac-amd64-network-installer.pkg
38+
- Local Installer: https://delta.jan.ai/cortex/v${{ env.VERSION }}/mac-amd64/cortex-${{ env.VERSION }}-mac-amd64-local-installer.pkg
3539
- macOS Apple Silicon:
36-
- Network Installer: https://delta.jan.ai/cortex/v{{ VERSION }}/mac-arm64/cortex-{{ VERSION }}-mac-arm64-network-installer.pkg
37-
- Local Installer: https://delta.jan.ai/cortex/v{{ VERSION }}/mac-arm64/cortex-{{ VERSION }}-mac-arm64-local-installer.pkg
40+
- Network Installer: https://delta.jan.ai/cortex/v${{ env.VERSION }}/mac-arm64/cortex-${{ env.VERSION }}-mac-arm64-network-installer.pkg
41+
- Local Installer: https://delta.jan.ai/cortex/v${{ env.VERSION }}/mac-arm64/cortex-${{ env.VERSION }}-mac-arm64-local-installer.pkg
3842
- Linux Deb:
39-
- Network Installer: https://delta.jan.ai/cortex/v{{ VERSION }}/linux-amd64/cortex-{{ VERSION }}-linux-amd64-network-installer.deb
40-
- Local Installer: https://delta.jan.ai/cortex/v{{ VERSION }}/linux-amd64/cortex-{{ VERSION }}-linux-amd64-local-installer.deb
41-
- Github action run: https://github.com/janhq/cortex.cpp/actions/runs/{{ GITHUB_RUN_ID }}
42-
env:
43-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
43+
- Network Installer: https://delta.jan.ai/cortex/v${{ env.VERSION }}/linux-amd64/cortex-${{ env.VERSION }}-linux-amd64-network-installer.deb
44+
- Local Installer: https://delta.jan.ai/cortex/v${{ env.VERSION }}/linux-amd64/cortex-${{ env.VERSION }}-linux-amd64-local-installer.deb
45+
- Github action run: https://github.com/janhq/cortex.cpp/actions/runs/${{ env.RUNNER_ID }}

0 commit comments

Comments
 (0)