From 48c43167b60fe2de25ef1fe578e71235c101627d Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 22 Aug 2021 19:25:24 -0700 Subject: [PATCH] Add update hook from user keychain --- Scripts/update_feed.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Scripts/update_feed.rb b/Scripts/update_feed.rb index f73982514..3469e4ca6 100755 --- a/Scripts/update_feed.rb +++ b/Scripts/update_feed.rb @@ -115,4 +115,8 @@ if 1 #appcast_revision < latest_revision #Upload to S3 %x[s3cmd put -P -m application/xml '#{site_dir}/#{feed}_builds/#{feed}.xml' s3://balde-losno-co/cog/] + + #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}] end