From 6c75fb903e1bd90b37f68139b358f68982a30759 Mon Sep 17 00:00:00 2001 From: Ondrej Belusky Date: Thu, 12 Feb 2026 08:07:59 +0100 Subject: [PATCH] initial setup --- action.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..24cd9d3 --- /dev/null +++ b/action.yml @@ -0,0 +1,20 @@ +name: 'Setup .netrc' +description: 'Sets up ~/.netrc for authentication' +inputs: + dot_netrc: + description: 'Content of the .netrc file' + required: true +runs: + using: 'composite' + steps: + - name: Write .netrc + shell: bash + run: | + if [ -n "${{ inputs.dot_netrc }}" ]; then + echo "${{ inputs.dot_netrc }}" > ~/.netrc + chmod 600 ~/.netrc + else + echo "Error: dot_netrc input is empty" + exit 1 + fi +