Github Action
Github Action
组成
workflow –> jobs –> steps
Event
events: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#about-events-that-trigger-workflows
Filter pattern cheat sheet: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
- event payload
- Activity types
- GITHUB_SHA
- GITHUB_REF
repository_dispatch
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#repository_dispatch
ENV variables
https://docs.github.com/en/actions/learn-github-actions/environment-variables
GITHUB_TOKEN
https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
Context
https://docs.github.com/cn/actions/learn-github-actions/contexts
expressions
https://docs.github.com/en/actions/learn-github-actions/expressions