-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
33 lines (32 loc) · 1.17 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: "SCP Command For Transfer Files"
description: "Automatically reads the single .scps file in the project and transfers the listed files to a remote server using SCP."
author: "Reene444"
inputs:
remote-user:
description: "Username for the remote server."
required: true
remote-host:
description: "Remote server address (e.g., ec2-12-34-56-78.compute.amazonaws.com)."
required: true
remote-path:
description: "Destination path on the remote server (e.g., ~/deploy/)."
required: true
ssh-key-path:
description: "SSH private key for authentication."
required: true
outputs:
transfer-status:
description: "Status of the SCP transfer operation."
runs:
using: "composite"
steps:
- shell: bash
run: |
echo "Current working directory: $(pwd)"
echo "Changing directory to Action directory"
cd $GITHUB_ACTION_PATH/
chmod +x ./script.sh
./script.sh "${{ inputs.remote-user }}" "${{ inputs.remote-host }}" "${{ inputs.remote-path }}" "${{ inputs.ssh-key-path }}" "$GITHUB_WORKSPACE"
branding:
icon: "chevrons-right" # Sets the icon for the Action
color: "green" # Sets the color for the Action