Skip to content

self-hosted not using bashrc #25407

Answered by Jackenmen
alexhraber asked this question in Actions
Discussion options

You must be logged in to vote

You can use custom shell, @everops-alex:

https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#custom-shell

For example, the template of “bash” shell is:

bash --noprofile --norc -eo pipefail {0}

So to make it source the rc files before running the script, you can use (-l flag is needed to invoke bash as login shell, see “Invocation” section in bash’s man page for more info):

bash -leo pipefail {0}

_Edited: _I used -I instead of -l in the reply

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@AllanOricil
Comment options

@FaureAlexis
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@devzer01
Comment options

@devzer01
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment