Github Actions
- Runners in Github Actions: on a larger note github offers two types of infra
- Microsoft Hosted / Github Hosted Runners
- Self Hosted Runners
- Github Actions Plan according to runners
Explain Github Actions pricing w.r.t to runners
I need to understand both free and paid plans
- OS for runners:
- For Github Runners we have
- For self hosted runners we can use any os.
Lets create a Github action for a java project on ubuntu using github actions
- we will be using the following repo Refer Here
-
Fork this repo
-
Lets configure actions (Watch classroom recording)
- All the github actions will be stored in
.github/workflows
YAML
- Github ACtions are written in YAML format
- YAML is collection of name value pairs
- YAML is a data description format
- in yaml the basic structure is
<name>: <value>
- Yaml has indentation similar to python.
- Data i.e. values will come in following types
- number
- text
- boolean
- list/array
- object/dictionary/map
- number
year: 2026
month: 3
price: 30.99
- text: text can be in quotes (single, double) or any alpha characters in value without quotes
month: march
month: 'march'
month: "march"
month: '3'
example_literal: |
Line one
Line two
example_folded: >
Line one
Line two
insured: True
insured: yes
insured: False
insured: no
accounts: ["sbi", "icici"]
# or
accounts:
- sbi
- icici
# or
account:
- sbi
- icici
address:
flatno: 601-A
building: nilgiri
area: ameerpet
- A yaml file will have .yml or .yaml as extensions
- Lets try to create a yaml about our
title: 'Stolen Focus: Why You Can't Pay Attention--And How to Think Deeply'
author: Johann Hari
isbn: 978-1526620217
publisher: Bloomsbury Publishing
published: 2023
options:
- paperback
- hardcover
- kindle
- epub
- pdf
awards:
- NEW YORK TIMES BESTSELLER
- WINNER OF THE PORCHLIGHT BUSINESS BOOK AWARD
Reviews:
Wall Street Journal: ONE OF THE BEST BOOKS OF THE YEAR
The Telegraph: one book about how the modern world is driving us crazy
Oprah: exactly what the world needs right now
The Irish Times: Noted its amiable accessibility and compared it favorably as a more readable companion to Shoshana Zuboff’s Surveillance Capitalism.
title: 'Dopamine Detox: A Short Guide to Remove Distractions and Get Your Brain to Do Hard Things'
author: Thibaut Meurisse
isbn: 978-1735061702
publisher: Independently Published
published: 2020
options:
- paperback
- kindle
- epub
- pdf
awards:
- AMAZON BESTSELLER (SELF-HELP CATEGORY)
Reviews:
Amazon Readers: Practical and easy-to-follow guide for improving focus and discipline
Goodreads: Highly rated for its simplicity and actionable advice
Medium: A concise framework for breaking bad habits and regaining mental clarity
Self-Help Blogs: Popular among productivity enthusiasts for quick implementation
---
- title: "Stolen Focus: Why You Can't Pay Attention--And How to Think Deeply"
author: Johann Hari
isbn: 978-1526620217
publisher: Bloomsbury Publishing
published: 2023
options:
- paperback
- hardcover
- kindle
- epub
- pdf
awards:
- NEW YORK TIMES BESTSELLER
- WINNER OF THE PORCHLIGHT BUSINESS BOOK AWARD
Reviews:
Wall Street Journal: ONE OF THE BEST BOOKS OF THE YEAR
The Telegraph: one book about how the modern world is driving us crazy
Oprah: exactly what the world needs right now
The Irish Times: Noted its amiable accessibility and compared it favorably as a more readable companion to Shoshana Zuboff’s Surveillance Capitalism.
- title: 'Dopamine Detox: A Short Guide to Remove Distractions and Get Your Brain to Do Hard Things'
author: Thibaut Meurisse
isbn: 978-1735061702
publisher: Independently Published
published: 2020
options:
- paperback
- kindle
- epub
- pdf
awards:
- AMAZON BESTSELLER (SELF-HELP CATEGORY)
Reviews:
Amazon Readers: Practical and easy-to-follow guide for improving focus and discipline
Goodreads: Highly rated for its simplicity and actionable advice
Medium: A concise framework for breaking bad habits and regaining mental clarity
Self-Help Blogs: Popular among productivity enthusiasts for quick implementation
- Generally tools publish schema or reference for yaml files which we need to fill.
Like this:
Like Loading...