mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 03:32:17 +08:00
add commit message for ci artifact
Some checks are pending
Build / windows (arm64) (push) Waiting to run
Build / windows (ia32) (push) Waiting to run
Build / windows (x64) (push) Waiting to run
Build / windows7 (ia32) (push) Waiting to run
Build / windows7 (x64) (push) Waiting to run
Build / linux (arm64) (push) Waiting to run
Build / linux (x64) (push) Waiting to run
Build / macos (arm64) (push) Waiting to run
Build / macos (x64) (push) Waiting to run
Build / artifact (push) Blocked by required conditions
Build / updater (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-bin) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron-bin) (push) Blocked by required conditions
Build / aur-git-updater (push) Waiting to run
Build / Update WinGet Package (push) Blocked by required conditions
Build / Update Homebrew cask (push) Blocked by required conditions
Some checks are pending
Build / windows (arm64) (push) Waiting to run
Build / windows (ia32) (push) Waiting to run
Build / windows (x64) (push) Waiting to run
Build / windows7 (ia32) (push) Waiting to run
Build / windows7 (x64) (push) Waiting to run
Build / linux (arm64) (push) Waiting to run
Build / linux (x64) (push) Waiting to run
Build / macos (arm64) (push) Waiting to run
Build / macos (x64) (push) Waiting to run
Build / artifact (push) Blocked by required conditions
Build / updater (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-bin) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron-bin) (push) Blocked by required conditions
Build / aur-git-updater (push) Waiting to run
Build / Update WinGet Package (push) Blocked by required conditions
Build / Update Homebrew cask (push) Blocked by required conditions
This commit is contained in:
parent
07101a1b84
commit
b4a9da92f6
|
@ -9,6 +9,7 @@ const GITHUB_WORKSPACE = process.env.GITHUB_WORKSPACE
|
|||
const pkg = fs.readFileSync('package.json', 'utf-8')
|
||||
const { version } = JSON.parse(pkg)
|
||||
const hash = execSync('git rev-parse --short HEAD').toString().trim()
|
||||
const message = execSync('git log -1 --pretty=%B').toString().trim()
|
||||
|
||||
const linuxFiles = [
|
||||
path.join(GITHUB_WORKSPACE, `mihomo-party-linux-${version}-aarch64.rpm`),
|
||||
|
@ -42,7 +43,7 @@ const windowsMedia = windowsFiles.map((file, index) => ({
|
|||
type: 'document',
|
||||
media: `attach://file${index}`
|
||||
}))
|
||||
windowsMedia[windowsMedia.length - 1].caption = `#${hash} #Windows10 #Windows11`
|
||||
windowsMedia[windowsMedia.length - 1].caption = `#${hash} #Windows10 #Windows11\n${message}`
|
||||
const windowsForm = new FormData()
|
||||
windowsForm.append('chat_id', CHAT_ID)
|
||||
windowsForm.append('media', JSON.stringify(windowsMedia))
|
||||
|
@ -54,7 +55,7 @@ const windows7Media = windows7Files.map((file, index) => ({
|
|||
type: 'document',
|
||||
media: `attach://file${index}`
|
||||
}))
|
||||
windows7Media[windows7Media.length - 1].caption = `#${hash} #Windows7 #Windows8`
|
||||
windows7Media[windows7Media.length - 1].caption = `#${hash} #Windows7 #Windows8\n${message}`
|
||||
const windows7Form = new FormData()
|
||||
windows7Form.append('chat_id', CHAT_ID)
|
||||
windows7Form.append('media', JSON.stringify(windows7Media))
|
||||
|
@ -66,7 +67,7 @@ const linuxMedia = linuxFiles.map((file, index) => ({
|
|||
type: 'document',
|
||||
media: `attach://file${index}`
|
||||
}))
|
||||
linuxMedia[linuxMedia.length - 1].caption = `#${hash} #Linux`
|
||||
linuxMedia[linuxMedia.length - 1].caption = `#${hash} #Linux\n${message}`
|
||||
const linuxForm = new FormData()
|
||||
linuxForm.append('chat_id', CHAT_ID)
|
||||
linuxForm.append('media', JSON.stringify(linuxMedia))
|
||||
|
@ -78,7 +79,7 @@ const macosMedia = macosFiles.map((file, index) => ({
|
|||
type: 'document',
|
||||
media: `attach://file${index}`
|
||||
}))
|
||||
macosMedia[macosMedia.length - 1].caption = `#${hash} #macOS`
|
||||
macosMedia[macosMedia.length - 1].caption = `#${hash} #macOS\n${message}`
|
||||
const macosForm = new FormData()
|
||||
macosForm.append('chat_id', CHAT_ID)
|
||||
macosForm.append('media', JSON.stringify(macosMedia))
|
||||
|
|
Loading…
Reference in New Issue
Block a user