Files
setup-netrc/action.yml
2026-02-12 08:07:59 +01:00

21 lines
472 B
YAML

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