Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes of your course #8

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0dd042b
Create Git_&_Github_Crash_Course.md
BaliDataMan May 30, 2024
7558b9d
Update Git_&_Github_Crash_Course.md
BaliDataMan May 30, 2024
2871adb
Update Git_&_Github_Crash_Course.md
BaliDataMan May 30, 2024
62068d3
Create Availability-&-Pricing
BaliDataMan Jun 5, 2024
86a97ea
Create Running Multi-Line Shell Commands.md
BaliDataMan Jun 5, 2024
0b5bd68
Create README.md
BaliDataMan Jun 5, 2024
4e17fed
Update README.md
BaliDataMan Jun 5, 2024
641afc0
Update README.md
BaliDataMan Jun 5, 2024
b6d5463
Update README.md
BaliDataMan Jun 6, 2024
4822d27
Update Git_&_Github_Crash_Course.md
BaliDataMan Jun 6, 2024
8253aaf
Rename Git_&_Github_Crash_Course.md to Git-&-Github-Crash-Course.md
BaliDataMan Jun 6, 2024
19a8e88
Update Git-&-Github-Crash-Course.md
BaliDataMan Jun 6, 2024
1221ca9
Update Git-&-Github-Crash-Course.md
BaliDataMan Jun 7, 2024
419828d
Update Git-&-Github-Crash-Course.md
BaliDataMan Jun 10, 2024
ff9fa8b
Update Git-&-Github-Crash-Course.md
BaliDataMan Jun 10, 2024
dccb331
Create 01- Github Actions Basic Building blocks and Components.md
BaliDataMan Jun 23, 2024
4b38382
Create Workflows & Events Deep Dive.md
BaliDataMan Jun 23, 2024
a9735d5
Rename Workflows & Events Deep Dive.md to 02-Workflows & Events Deep …
BaliDataMan Jun 23, 2024
e111de5
Create manual.yml
BaliDataMan Jun 25, 2024
5ab4edc
Update 01- Github Actions Basic Building blocks and Components.md
BaliDataMan Jun 25, 2024
74931f2
Update 01- Github Actions Basic Building blocks and Components.md
BaliDataMan Jun 25, 2024
eb45571
Update 02-Workflows & Events Deep Dive.md
BaliDataMan Jun 27, 2024
9df50ea
Update README.md
BaliDataMan Jun 27, 2024
f650364
Update 02-Workflows & Events Deep Dive.md
BaliDataMan Jun 27, 2024
c832da3
Update 02-Workflows & Events Deep Dive.md
BaliDataMan Jun 27, 2024
ad086c4
Update 02-Workflows & Events Deep Dive.md
BaliDataMan Jun 27, 2024
8e2d5cd
Update 02-Workflows & Events Deep Dive.md
BaliDataMan Jun 27, 2024
b37bbc0
Create 03 Job Artifacts & Outputs
BaliDataMan Jun 27, 2024
53a4dcc
Rename 03 Job Artifacts & Outputs to 03-Job Artifacts & Outputs
BaliDataMan Jun 27, 2024
54e0bcb
Rename Git-&-Github-Crash-Course.md to 0-Git & Github Crash Course.md
BaliDataMan Jun 27, 2024
ee7ab80
Update README.md
BaliDataMan Jun 27, 2024
84a23bf
Update and rename 03-Job Artifacts & Outputs to 03-Job Artifacts & Ou…
BaliDataMan Jul 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update 02-Workflows & Events Deep Dive.md
BaliDataMan authored Jun 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit c832da3df79b979ecdaa4520c5d2393bb37b0328
79 changes: 75 additions & 4 deletions 02-Workflows & Events Deep Dive.md
Original file line number Diff line number Diff line change
@@ -9,10 +9,15 @@
- also "using workflow dispatch we can trigger the worflow through the button"
![image](https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/44be287f-4dea-488a-a8d9-7fdea0351101)


</br>
</br>
</br>
<h2> Event Filters and Activity types</h2>
<img width="872" alt="image" src="https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/f819c3ed-6050-4337-bb86-61cb5aada875">


</br>
</br>
<h3> Activity Types</h3>
<img width="917" alt="image" src="https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/df73dbf5-92eb-4f24-999f-cec492b3b0ff">

@@ -23,11 +28,77 @@

<img width="187" alt="image" src="https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/fe9897c2-8e9b-4f24-a2f3-911db1fe46a8">



</br>
</br>
<h3>Event Filters</h3>

![image](https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/a932e0e1-df49-4b2b-80b9-201b8cc7639c)

- We can triggere event filter on "push" by the following filters as underlined above:
- branches
- tags
- branch-ignore
- Tag-ignore

- Example of Event trigger:

<img width="698" alt="image" src="https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/a7712c3e-9b34-4fd2-9d67-b0171a5bbb82">

- Another examples of adding event triggers(the branches part of "pull request"):

<img width="662" alt="image" src="https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/3238cc25-a83e-4adc-882d-ba2e06303eef">



- Offical doc to learn about Event filters: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
- Filter Pattern Cheat Sheet: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet

<h2>Final Github actions having Events</h2>

</br>
</br>
<h3>Final Github worflow code: Having Events filters and activity type asper above exmaples </h3>

![image](https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/16741e1a-a9d9-42ab-a98a-73880ab1e6b6)


- Link to the worflow: https://github.com/BaliDataMan/github-actions-course-resources/blob/main/Code/03%20Events/02%20Finished%20Project/.github/workflows/demo1.yml


</br>
</br>
</br>
<h2> Special Behaviour: Forks & Pull Request Events</h2>

<img width="870" alt="image" src="https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/32915547-3d22-4485-a5b7-495c9f8c175d">

- If its added as Contributor the flow will excute, but if someone unknown or first time raising PR, the Github worflow will not execute even if asper the code.


</br>
</br>
</br>
<h2> Cancelling and Skipping the Workflow</h2>

<img width="837" alt="image" src="https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/a2e67a8f-535b-412b-904c-eef10eb6a594">



- You can Manually cancel the worflow through the button as shown with yellow circle below:

<img width="923" alt="Screenshot 2024-06-27 at 5 59 23 PM" src="https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/03cf1a9f-3b55-4583-97c1-f2ff9a7c695c">

- You can skip workflow runs triggered by the push and pull_request events by including a command in your commit message.


- Example of skipping the worflow:

<img width="404" alt="image" src="https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/1825de60-8d33-4113-b5fe-94809c803488">


- For more details (official doc: https://docs.github.com/en/actions/managing-workflow-runs/skipping-workflow-runs):

<img width="676" alt="image" src="https://github.com/BaliDataMan/github-actions-course-resources/assets/29046663/97736291-5f6c-4512-8552-c1dd6c059146">



- Link to the worflow: https://github.com/BaliDataMan/github-actions-course-resources/blob/main/Code/03%20Events/02%20Finished%20Project/.github/workflows/demo1.yml