Giter VIP home page Giter VIP logo

actions-playground's Introduction

Actions Playground

This repository is meant for testing different GitHub Actions workflows. I feature these examples on my YouTube channel and on my blog.

I aim to create practical examples for people who are just getting started with GitHub Actions and are in need of some inspiration.

If you have a cool workflow in mind then feel free to open a pull request and I might even do a video about it!

Current workflows

Here are the workflows that are currently configured.

PR Labeler

The pull request labeler workflow in .github/workflows/pr-labels.yml assigns labels to pull requests based on the edited file types and directories.

First interaction

When someone opens a pull request or a new issue for the first time in this repository they are greeted by the first interaction action located in .github/workflows/first-interaction.yml.

Stale issues

If there are issues that are have not been resolved and have been open for a long time they will be marked as stale and eventually closed automatically. The workflow is located in .github/workflows/stale.yml.

Black

Pull requests are checked with the Black code formatter to verify that all committed Python code is formatted properly. The workflow can be found from .github/workflows/black.yml.

Flake8

Flake8 is a Python linter. The .github/workflows/flake8.yml workflow verifies that all pull requests pass the check.

Unittest

The repository contains a super simple Python unit test that always passes. The .github/workflows/unittest.yml is the workwflow that runs that check against all push events.

I like pizza

When someone comments a pull request or an issue with "I like pizza", the workflow in .github/workflows/like-pizza.yml will react to the comment with a thumbs up emoji. This demonstrates how you can use the issue_comment event.

Deploy on issue comment

The deployment workflow takes issue comments one step further. In addition to reacting with the rocket emoji to a "/deploy" comment in a PR, it will checkout the correct branch, run a fake deployment command that might fail, and then respond back to the PR with a message that tells the deployment status.

Contributing

  1. Have an idea for a cool workflow
  2. Fork the repository
  3. Implement and test your workflow
  4. Describe it shortly in the README
  5. Open a pull request

actions-playground's People

Contributors

jannekem avatar

Stargazers

 avatar Sami Koskivaara avatar Falguni Sarkar avatar Jarek Skrzypek avatar

Watchers

 avatar

actions-playground's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.