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, then select Check your answers.
What is GitHub Script?
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.
You must answer all questions before checking your work.
Need help? See our troubleshooting guide or provide specific feedback by reporting an issue.