DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

MakendranG for Kubernetes Community Days Chennai

Posted on • Updated on

Introduction to Github Actions - Part 2

Introduction to Github Actions

  1. Introduction to Github Actions - Part 1
  2. Introduction to Github Actions - Part 2

Create an example workflow

  1. Create a .github/workflows directory in your repository on GitHub.
  2. In the .github/workflows directory, You can create a file named github-actions-kcddemo.yml.
  3. YAML contents is in the github-actions-kcddemo.yml file.
  4. To start a pull request, scroll to the bottom of the page and select create a new branch. Click Propose new file to create a pull request. demo
  5. The push event occurs when you commit the file to a branch.

Viewing your workflow Output

  • On GitHub.com, go to the main page of the repository.

  • Click Actions under your repository name.

actions

  • In the left sidebar, you can click on the workflows you want to see.

workflow

  • Click on the name of the run you want to see.

run

  • You can click the Explore-GitHub-Actions job.

explore

  • The log shows how the steps were processed. To view its details, expand any of the steps.

log

Thanks for reading my article till end. I hope you learned something special today. If you enjoyed this article then please share to your friends and if you have suggestions or thoughts to share with me then please write in the comment box.

Top comments (0)

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.