Skip to content

Visualizing the github object #27206

Answered by dentuzhik
aleks-ivanov asked this question in Actions
Discussion options

You must be logged in to vote

So as I mentioned above you can use actions/toolkit to access github context in node, that’s one way:

github.com

actions/toolkit - TypeScript Action Walkthrough

The GitHub ToolKit for developing GitHub Actions. Contribute to actions/toolkit development by creating an account on GitHub.

Then to make this even more lo-key investment and don’t do bundling you could use acitons/github-script to access toolkit inline inside yaml, as you can see both github and context are parts of the arguments:

github.com

actions/github-script

Write workflows scripting the GitHub API in JavaScript

When it comes to your specific usecase, I believe you need an “if” with particular assertions agaist
g…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback
2 participants