Github Actions
- Github Actions Help in running workflows on GitHub Events
- For Github Repository and associated stuff watch classroom recording
- Github Events
- Github Actions responds to Events by triggering one or more Github Actions
- Github Actions are expressed in yaml files which will be present in
.github/actionsfolder in root of your repo - Github Actions Workflow Structure
- Events: Trigger which is of three types
- schedule
- activity on Github such as PR, push, issue created ..
- Manual Execution (Workflow dispatch)
- Runners:
- This is where the pipeline executes
- Are of two types
- Pricing
- Minute Multipliers
- 1 CI/CD minute = 1 minute (linux)
- 2 CI/CD minutes = 1 minute (Windows)
- 10 CI/CD minutes = 1 minute (mac)
- Every Github Runner will have pre installed softwares in it ubuntu-2404
- Jobs
- Steps: Individual actions, which can be acheived by predefined actions or low level commands which use run

- Events: Trigger which is of three types
- Github actions for Azure DevOps
Lets Create first pipeline for Spring Petclinic
- We can use Visual studio code to author workflow (Pipeline) or from Github
-
Visual studio has extension for Github Actions
- Github Actions Workflow reference
- First run of spring petclinic based on starter workflow
Starter Workflows
- Github actions provides starter workflows which can be used depeneding on the technology stack
- Using Starter Workflows
- Refer Here for java with maven starter workflow
- Note: Watch classroom recording and create atleast two workflows
