mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-07 11:30:30 -06:00
chore : pipeline improvements (#678)
* Add support for --PR flag in getRandomVersion.sh * Add --PR flag to getRandomVersion.sh calls Updated getRandomVersion.sh call to include --PR flag for both Android and iOS bundle creation. * Update maestro-test.yml * Update maestro-test.yml * Update maestro-test.yml * Create sendDiscordMessage * Replace Fastlane notifications with Node script * Rename sendDiscordMessage to sendDiscordMessage.js * Update sendDiscordMessage.js * Update sendDiscordMessage.js * Fux * frf * fix * gg * fix: Fix incorrect return of on Web * fix: Fix Versioned URL
This commit is contained in:
14
scripts/sendDiscordMessage.js
Normal file
14
scripts/sendDiscordMessage.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const WEBHOOK_URL = process.env.DISCORD_WEBHOOK_URL
|
||||
|
||||
async function sendDiscordMessage(message) {
|
||||
const res = await fetch(WEBHOOK_URL, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ content: message }),
|
||||
})
|
||||
|
||||
console.log('Sent:', message)
|
||||
}
|
||||
|
||||
const msg = process.argv.slice(2).join(' ')
|
||||
sendDiscordMessage(msg)
|
||||
Reference in New Issue
Block a user