Github actions - Workflows
Baruch Bazak ????
Devops | Python | Scripting | Docker | Git | AWS | Jenkins | CI | CD | Networking | Terraform | Kubernetes | ArgoCD
Workflows define the event that triggers actions.
Workflows define which actions to run.
Repositories can contain multiple workflows.
Events:
one event example:
on: push
on: release
multiple events example:
?on: [push, pull request]
jobs:
Example:
name: First action
on:
push:
paths:
- '**.md'
jobs:
ubuntu:
name: First job
领英推荐
runs-on: ubuntu-latest
steps:
- run: date
windows:
name: Second job
runs-on: windows-latest
steps:
- run: date
macos:
name: Third job
runs-on: macos-latest
steps:
- run: date
depends:
name: Dependencies job
needs: [ubuntu, windows, macos]
runs-on: ubuntu-latest
steps:
- run: echo "you are done the mission !"
Explaine :