toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

Add GITHUB_REF_TYPE and GITHUB_REF_NAME support to github context

Open DenKoren opened this issue 4 years ago • 5 comments
trafficstars

Hope it is all changes required to pass ref_type info from env to github context. It's first time I touch actions toolkit and I'm not sure if I hadn't miss something.

DenKoren avatar Nov 18 '21 17:11 DenKoren

Why don't you add GITHUB_REF_PROTECTED? :)

cf. https://docs.github.com/en/actions/learn-github-actions/environment-variables

peaceiris avatar Nov 18 '21 21:11 peaceiris

Done. :) If there's a better way to cast the env value to boolean, please let me know. I'm newbie in TypeScript.

DenKoren avatar Nov 19 '21 11:11 DenKoren

@peaceiris can we merge this ?

dbritto-dev avatar Mar 16 '22 00:03 dbritto-dev

LGTM

peaceiris avatar Mar 16 '22 00:03 peaceiris

How to get the approval from actions/actions-runtime? Seems it is the only thing left before merge.

DenKoren avatar Mar 18 '22 09:03 DenKoren

FYI @GhadimiR @Link- would you be able to review/approve this PR? The change seems relatively straightforward

igreg avatar Jun 18 '25 18:06 igreg