File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,15 @@ cd "$GITHUB_WORKSPACE"
15
15
# Pass in required variables to post-transfer script:
16
16
full_transfer_path=" $ACTION_TRANSFER_PATH /$GITHUB_SHA "
17
17
action_dir=" $( dirname -- " ${BASH_SOURCE[0]} " ) "
18
- { declare -p \
18
+ {
19
+ echo " #!/bin/bash" ; \
20
+ declare -p \
19
21
ACTION_PATH \
20
22
GITHUB_REF_NAME \
21
23
full_transfer_path \
22
24
; \
23
- cat " $action_dir " /remote-post-transfer.bash; } > ./post-transfer.bash
25
+ cat " $action_dir " /remote-post-transfer.bash;
26
+ } > ./post-transfer.bash
24
27
chmod +x ./post-transfer.bash
25
28
# Archive directory and pipe over SSH:
26
29
dir_size_human=$( du -sbh --exclude " ./.git" | grep -o " [0-9]*" )
@@ -30,7 +33,7 @@ tar -czf - --exclude-vcs . | \
30
33
-i " $ssh_key_path " \
31
34
-p " $ACTION_PORT " \
32
35
" $ACTION_USER " @" $ACTION_HOSTNAME " \
33
- " rm -rf $full_transfer_path && mkdir -p $full_transfer_path && cd $full_transfer_path && tar -xzf - && mv ./post-transfer.bash $ACTION_POST_TRANSFER_SCRIPT && echo $ACTION_POST_TRANSFER_SCRIPT_PREFIX $ACTION_POST_TRANSFER_SCRIPT && cat $ACTION_POST_TRANSFER_SCRIPT "
36
+ " rm -rf $full_transfer_path && mkdir -p $full_transfer_path && cd $full_transfer_path && tar -xzf - && mv ./post-transfer.bash $ACTION_POST_TRANSFER_SCRIPT && echo $ACTION_POST_TRANSFER_SCRIPT_PREFIX $ACTION_POST_TRANSFER_SCRIPT && cat $ACTION_POST_TRANSFER_SCRIPT && $ACTION_POST_TRANSFER_SCRIPT_PREFIX $ACTION_POST_TRANSFER_SCRIPT "
34
37
echo " Transfer complete"
35
38
36
39
# action_dir="$(dirname -- "${BASH_SOURCE[0]}")"
Original file line number Diff line number Diff line change 1
- #! /bin/bash
2
1
full_transfer_path=${full_transfer_path:- " /dev/null" }
3
2
source_dir=" $full_transfer_path "
4
3
destination_dir=" $ACTION_PATH /$GITHUB_REF_NAME "
You can’t perform that action at this time.
0 commit comments