commit 6c75fb903e1bd90b37f68139b358f68982a30759 Author: Ondrej Belusky Date: Thu Feb 12 08:07:59 2026 +0100 initial setup 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 +