Skip to content

A repository for testing out different Actions workflows. Contributions are welcome!

License

Notifications You must be signed in to change notification settings

dequejenn/actions-playground

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A repository for testing out different Actions workflows. Contributions are welcome!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%