Skip to content

Instantly share code, notes, and snippets.

View jwilander's full-sized avatar

Joram Wilander jwilander

View GitHub Profile
@mickmister
mickmister / scrape_new_plugins.sh
Last active April 18, 2024 20:24
This bash script checks if there are any new plugins added to the Mattermost plugin marketplace, and creates a new post through a Mattermost incoming webhook request. See the comment below for more details.
#!/usr/bin/env bash
if [ -z "$MM_WEBHOOK_URL" ]
then
echo "Please set the MM_WEBHOOK_URL environment variable"
exit 0
fi
LOCAL_PLUGINSJSON_PATH="plugins.json"
REMOTE_PLUGINSJSON_PATH="new_plugins.json"