/Self-Reward-Actions

A GitHub Action that adds a comment on a PR whenever someone merges their own Pull Request.

Primary LanguageJavaScriptMIT LicenseMIT

Self Reward Actions

A simple GitHub Action that posts this image whenever someone merges their own Pull Request:

image

Example Workflow

name: PR Test
on: 
 pull_request:
    types: [closed] 
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: xShteff/Self-Reward-Actions@v2
      env:
       GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       IMAGE_URL: https://media.tenor.com/images/9da8bb145d928fb9e53772588622ca53/tenor.gif
       MEME_HEADER: ${{ env.GITHUB_ACTOR }} just merged their own PR! Shame!

Required variables

This Action requires you have the GITHUB_TOKEN secret set up, so it can post the comment on the PR.

Why?

Why not?

Inspiration

I've pretty much combined two already existing repos to create this. Feel free to support them however you want :3