initial setup
This commit is contained in:
20
action.yml
Normal file
20
action.yml
Normal file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user