CI/CD

In GitHub Actions workflow, what the 'on' attribute/directive is used for?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Specify upon which events the workflow will be triggered.

For example, you might configure the workflow to trigger every time a changed is pushed to the repository.