File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ inputs:
45
45
required : true
46
46
default : " sudo"
47
47
48
+ after_command :
49
+ description : Command to execute after deployment
50
+ required : false
51
+
48
52
runs :
49
53
using : " composite"
50
54
steps :
59
63
ACTION_PATH_OWNER : ${{ inputs.path_owner }}
60
64
ACTION_POST_TRANSFER_SCRIPT : ${{ inputs.post_transfer_script }}
61
65
ACTION_POST_TRANSFER_SCRIPT_PREFIX : ${{ inputs.post_transfer_script_prefix }}
66
+ ACTION_AFTER_COMMAND : ${{ inputs.after_command }}
62
67
id : deploy_run
63
68
run : ${{ github.action_path }}/deploy-action.bash
64
69
shell : bash
Original file line number Diff line number Diff line change @@ -36,3 +36,9 @@ tar -czf - --exclude-vcs . | \
36
36
" $ACTION_USER " @" $ACTION_HOSTNAME " \
37
37
" 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 && $ACTION_POST_TRANSFER_SCRIPT_PREFIX $ACTION_POST_TRANSFER_SCRIPT "
38
38
echo " Transfer complete"
39
+
40
+ if [ -n " $ACTION_AFTER_COMMAND " ]
41
+ then
42
+ echo " Running after command: $ACTION_AFTER_COMMAND "
43
+ eval " $ACTION_AFTER_COMMAND "
44
+ fi
You can’t perform that action at this time.
0 commit comments