From 700cb962a32a175f02ed6d486dac29ffc2363f46 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 31 Jul 2022 21:50:05 -0700 Subject: [PATCH] Update update_feed.rb with new parameter New parameter for update title for the site generator. Signed-off-by: Christopher Snowhill --- Scripts/update_feed.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Scripts/update_feed.rb b/Scripts/update_feed.rb index 9e21cdf21..93577e456 100755 --- a/Scripts/update_feed.rb +++ b/Scripts/update_feed.rb @@ -5,6 +5,7 @@ require 'open-uri' require 'shellwords' require 'nokogiri' require 'time' +require 'uri' feed = ARGV[0] || 'mercury' @@ -126,5 +127,6 @@ if 1 #appcast_revision < latest_revision #Send web hook to update site update_uri = %x[security find-generic-password -w -a #{ENV['LOGNAME']} -s cogupdateurl] - %x[curl -X POST #{update_uri}] + update_parameter = URI.escape(latest_revision) + %x[curl -X POST "#{update_uri}?trigger_title=#{update_parameter}"] end