DEV Community

MakendranG
MakendranG

Posted on • Updated on

Overview of Github Actions - Part 2

Overview of Github Actions

  1. Overview of Github Actions - Part 1
  2. Overview of 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.

Above blog is submitted as part of 'Devtron Blogathon 2022' - https://devtron.ai/
Check out Devtron's GitHub repo - https://github.com/devtron-labs/devtron/ and give a ⭐ to show your love & support.
Follow Devtron on LinkedIn - https://www.linkedin.com/company/devtron-labs/ and Twitter - https://twitter.com/DevtronL/, to keep yourself updated on this Open Source project.

Top comments (0)