DEV Community

loading...

Rick Astley is back!

tejasvonly profile image Tejasv Sharma ・1 min read

My Workflow

A GitHub Action to Rick-Roll innocent people.

Alt Text

Submission Category:

Wacky Wildcards

Yaml File or Link to Code

GitHub logo TejasvOnly / random-rickroll

GitHub Action to randomly rick-roll people who open an issue on your repository.

Random Rick-Roll

This action comments a gif of Rick Astley when someone opens a new issue.

Inputs

percentage

Required Number of people out of hundred should be rickrolled (set this to 100 if you want to rickroll everyone).

message

Optional Comment message when not rickrolling (No comment would be made if not provided).

GITHUB_TOKEN

Required Github token of the repository.

Try Opening an issue in this repository : Demo

Example usage

on:
  issues:
    types: [opened]

jobs:
  comment:
    runs-on: ubuntu-latest
    steps:
      - name: Rick Roll
        uses: TejasvOnly/random-rickroll@v1.0
        with:
          percentage: 100
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}'



Additional Resources / Info

https://github.com/TejasvOnly/rickrolldemo

Discussion

pic
Editor guide