Getting started with Actions

 1 year ago
source link: https://dev.to/risadams/getting-started-with-actions-4ngh
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Getting started with Actions

For this year's Actions Hackathon, I intend to learn how to write custom actions. I will start small by creating a simple action that will automatically update a CONTRIBUTORS.md document with the top contributors list.

Because I do not yet know how actions work, this will be a multi-step process.

  1. Create a simple "Hello-World" style action to get a feel for things.
  2. Use the Github API to pull and update the contributors data
  3. Figure out how to write and save a file
  4. Figure out how to commit back to the repo, or start a pull request

My Workflow

You can view the project here: https://github.com/risadams/contributors-update, And feel free to leave comments or suggestions, everything is MIT license

Submission Category: Maintainer Must-Haves

Yaml File or Link to Code


About Joyk

Aggregate valuable and interesting links.
Joyk means Joy of geeK