List of all the environment variables available

0

Hi

I'm working on developping a CodeCatalyst action. I see in other available actions code like

const workflowName = core.getEnvironmentVariable('CATALYST_WORKFLOW_NAME').trim() const projectName = core.getEnvironmentVariable('CATALYST_WORKFLOW_PROJECT_NAME').trim()

Where are all these environment variables documented ?

I cannot find any reference to CATALYST_WORKFLOW_NAME, nor CATALYST_WORKFLOW_PROJECT_NAME in your documentation

Thanks

질문됨 6달 전234회 조회
3개 답변
1
profile pictureAWS
전문가
답변함 6달 전
  • Thanks, but I do not see CATALYST_WORKFLOW_NAME ib the doc you mentioned. Does that mean that action is using an unsupported environment variable? BTW, I tested the code above and I can get value for the workflow name and project name.

1

Hi there - Thank you for reaching out to us. So CodeCatalyst haven't yet officially published the supported environment variables. But we are working on publishing them soon.

In the meantime to unblock yourself, you may use them. But they may change when we officially publish the supported environment variables.

AWS
전문가
답변함 6달 전
0

Thank you. Side question. In your doc, I see that I can get the branch name from the environment variables

One way to get it is, as stated in your doc MyInput: ${WorkflowSource.BranchName}

And then I can get it in Typescript code using core.getInput('MyInput');

From what I understood, BranchName is an environment variable, but when I try to get it's value in Typescript directly, without going via an input variable, it is not working.

core.getEnvironmentVariable('BranchName') -> This is not returning the branch name

Am I doing something wrong? Any way to get the branch name in the TS code without using input variables ?

답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠