Skip to content

Commit c714857

Browse files
Merge pull request #185 from nathanielvarona/improvement-action-metadata-main-entry-point-code
Action Metadata Main Entry Point Code
2 parents 040db81 + 197c1b6 commit c714857

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

action.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -83,31 +83,29 @@ runs:
8383
PRITUNL_CONCEALED_OUTPUTS: ${{ inputs.concealed-outputs }}
8484
shell: bash
8585
run: |
86-
# Entrypoint for executing 'pritunl-client.sh' script
86+
# Main entry point for executing the 'pritunl-client.sh' script
8787
88-
# Define the pritunl_client function
88+
# Define the 'pritunl_client' function, which sets up and runs the script
8989
pritunl_client() {
90-
# Declare a local variable to store the path separator
91-
# (using a local variable to avoid polluting the global namespace)
90+
# Declare a local variable to store the path 'separator', to avoid polluting the global namespace
9291
local separator
9392
9493
# Determine the path separator based on the runner OS
9594
case "${RUNNER_OS}" in
9695
Windows)
97-
# Use a backslash (\) for Windows (required for Windows paths)
96+
# Use a backslash (\) for Windows paths
9897
separator='\'
9998
;;
10099
*)
101-
# Catch-all for non-Windows OSes (Linux, macOS, etc.)
102-
# Use a forward slash (/) for paths
100+
# Use a forward slash (/) for non-Windows OSes (Linux, macOS, etc.)
103101
separator='/'
104102
;;
105103
esac
106104
107-
# Construct and run the full path to the 'pritunl-client.sh' script
108-
# using the GITHUB_ACTION_PATH and the separator
105+
# Construct the full path to the 'pritunl-client.sh' script using 'GITHUB_ACTION_PATH' and the 'separator'
106+
# and run the script
109107
"${GITHUB_ACTION_PATH}${separator}pritunl-client.sh"
110108
}
111109
112-
# Call the pritunl_client function to start the script
110+
# Call the 'pritunl_client' function to start the script execution
113111
pritunl_client

0 commit comments

Comments
 (0)