From 0c5b8b7b0f35a493f5b8c2687c5fd204c2628538 Mon Sep 17 00:00:00 2001
From: Egor Tensin <Egor.Tensin@gmail.com>
Date: Sun, 11 Dec 2022 16:18:03 +0100
Subject: downgrade Chocolatey

I don't know why, but versions past 1.1.0 don't work with
--source=cygwin, they just don't install anything.
---
 action.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/action.yml b/action.yml
index 7779fd1..d06f4d3 100644
--- a/action.yml
+++ b/action.yml
@@ -52,6 +52,12 @@ runs:
         }
 
         $choco = Locate-Choco
+
+        # WTF? Chocolatey versions past 1.1.0 don't work with --source=cygwin,
+        # they simply don't install anything.
+        # TODO: file a bug upstream.
+        & $choco install chocolatey --version 1.1.0 --allow-downgrade -y
+
         $choco_params = @(
             'upgrade',
             'cygwin',
-- 
cgit v1.2.3