Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Celebrate your progress with Github Actions

Celebrate your progress with Github Actions

Action! Celebrate!

This talk was made for the PyLadies International Women's Day event 2021. It demonstrates how to use Github actions to remind yourself and others to celebrate your progress and achievements.

348cfd39887a39d65a7a99cd849d1d12?s=128

Jessica Greene

March 08, 2021
Tweet

Transcript

  1. ACTION! CELEBRATE! Celebrate your progress with Github Actions @sleepypioneer

  2. “The more you praise and celebrate your life, the more

    there is in life to celebrate.” —Oprah Winfrey
  3. Backend Engineer @ Ecosia.org Former coffee roaster & camera assistant

    Jessica Greene @sleepypioneer
  4. GITHUB ACTIONS! GitHub Actions provide a way to automate your

    software development workflows on GitHub. This includes traditional CI/CD tasks such as running test suites, building applications and publishing packages.
  5. GITHUB ACTIONS! But it also includes automated greetings for new

    contributors, labelling pull requests based on the files changed, or even creating cron jobs to perform scheduled tasks.
  6. Individual tasks; you can write your own actions or use

    an action someone else created A tale of Two parts Workflows Github Actions Automated processes that run on your repository; workflows can have many GitHub actions
  7. Getting started Workflows Adding workflows to your repository 01.

  8. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  9. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  10. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  11. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  12. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  13. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  14. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  15. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  16. Creating your own Actions Writing your own github action to

    tweet your celebration 02.
  17. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  18. 02 Inputs (optional) specify data your action expects 3 main

    components of an action: 03 Outputs (optional) declare data that an action sets 01 Runs (required) configures the path to the actions code and the application used to execute the code (Docker/ Javascript/ shell script)
  19. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  20. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  21. Putting it together Tweet My appreciation The idea is to

    have a workflow which when someone makes a pull request uses an action that sends out a Tweet to celebrate that person's work!!
  22. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  23. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  24. CREDITS: This presentation template was created by Slidesgo, including icons

    by Flaticon, and infographics & images by Freepik THANKS! Do you have any questions? @sleepypioneer www.github.com/sleepypioneer
  25. The event that triggers the workflow The jobs that make

    the workflow The machine each job should run The tasks each job should run 01. on 02. jobs 03. runs-on 04. steps The command the step should run 05. run
  26. DON’T FORGET to celebrate • https://github.com/sleepypioneer/pyladies_IWD • https://github.com/sleepypioneer/actions_to_celebrate • https://github.com/features/actions

    • https://github.com/marketplace • Tweepy: https://docs.tweepy.org/en/latest/index.html • PyGithub: https://pygithub.readthedocs.io/en/latest/index.html