Ce navigateur n’est plus pris en charge.
Effectuez une mise à niveau vers Microsoft Edge pour tirer parti des dernières fonctionnalités, des mises à jour de sécurité et du support technique.
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 runs only when the target issue is labeled as a bug.
To make sure that new issue names don't violate the bug reporting policy when issues are 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.
Cette page a-t-elle été utile ?
Vous avez besoin d’aide pour cette rubrique ?
Vous souhaitez essayer d’utiliser Ask Learn pour clarifier ou vous guider dans cette rubrique ?