1
0
mirror of synced 2026-01-04 00:06:20 -05:00
Files
docs/translations/ru-RU/data/reusables/github-actions/actions-on-examples.md
Vanessa Yuen e50d2ada6f Crowdin translation batch (#16963)
* New Crowdin translations by Github Action

* Revert broken translated files to english

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2020-12-15 13:30:14 -05:00

35 lines
881 B
Markdown

##### Example using a single event
```yaml
# Triggered when code is pushed to any branch in a repository
on: push
```
##### Example using a list of events
```yaml
# Triggers the workflow on push or pull request events
on: [push, pull_request]
```
##### Example using multiple events with activity types or configuration
If you need to specify activity types or configuration for an event, you must configure each event separately. You must append a colon (`:`) to all events, including events without configuration.
```yaml
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
# Also trigger on page_build, as well as release created events
page_build:
release:
types: # This configuration does not affect the page_build event above
- created
```