This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Choose the best response for each question.
What is GitHub Script?
A programming language that compiles to JavaScript.
An automation syntax for GitHub Shell.
A workflow action that enables GitHub API access from GitHub Actions.
What is the difference between GitHub Script and GitHub Actions?
GitHub Actions is for automating build and release pipelines. It was written in the GitHub Script programming language.
GitHub Actions is a workflow engine that automates the execution of actions. GitHub Script is one of the actions available for use in a workflow.
GitHub Actions automates workflows that run inside GitHub. GitHub Script automates workflows that run outside of GitHub.
Why would someone use the following YAML in a GitHub Script action: if: contains(github.event.issue.labels.*.name, 'bug')?
if: contains(github.event.issue.labels.*.name, 'bug')
To ensure that the script only runs when the target issue has been labeled as a bug.
To make sure that new issue names do not violate the bug reporting policy when created.
To automatically flag any commits containing code matching the github.event.issue.labels.*.name namespace pattern as a bug.
github.event.issue.labels.*.name
You must answer all questions before checking your work.
Was this page helpful?