From 6c84b3841a6f377cc43ec2252dffd670efeb9efa Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 24 Mar 2025 00:40:20 +0100 Subject: [PATCH] add packages-dir custom option --- README.md | 1 + action.yml | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a192d77..f1c190e 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Parameters | pubkeys | *none* | Absolute paths of extra public key files (RFC4880 format), separated by whitespace | check-sig | true | Whether to check the setup.ini signature | add-to-path | true | Whether to add Cygwin's `/bin` directory to the system `PATH` +| packages-dir | C:\cygwin-packages | Directory to store downloaded packages | allow-test-packages | false | Consider package versions marked test for installation | check-hash | true | Whether to check the hash of the downloaded Cygwin installer. diff --git a/action.yml b/action.yml index 836d612..9d28457 100644 --- a/action.yml +++ b/action.yml @@ -29,6 +29,10 @@ inputs: description: Should Cygwin's bin directory be added to the system PATH? required: false default: 'true' + packages-dir: + description: Packages directory + required: false + default: C:\cygwin-packages allow-test-packages: description: Consider package versions marked test required: false @@ -85,7 +89,7 @@ runs: $args = @( '-qnO', - '-l', 'C:\cygwin-packages', + '-l', '${{ inputs.packages-dir }}', '-R', '${{ inputs.install-dir }}' )