I would like to call a function from a sh script on a different run. Both functions are in the same script (my_script.sh). However, I would like to have a different “step name” on my GitHub action.
How can I achieve that?
The code below generates an error:
my_function_2: command not found. It seems I need to call again
source my_script.sh which I do not want.
- name: Setup My script run: | source my_script.sh my_function_1 - name: Call function2 run: | # my_function_2 is defined in my_script my_function_2
thank you for your feedback