Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
wind

GitHub Action

Memer Action

0.1.0

Memer Action

wind

Memer Action

A GitHub Action for Programmer Memes

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Memer Action

uses: Bhupesh-V/memer-action@0.1.0

Learn more about this action in Bhupesh-V/memer-action

Choose a version

Memer Action

memer-action-logo

GitHub release (latest by date) Lint Integration Test Twitter: Bhupesh Varshney

Usage

Example workflow

You can use the following workflow as it is, just copy/paste in a file named greetings.yml inside your workflows folder.

name: Memer Workflow

on: [pull_request]

jobs:
  greeting:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Run Memer Action
      - id: memer

        uses: Bhupesh-V/memer-action@master
        with:
          filter: "new"

      - name: Check Outputs
        run: |
          echo "${{ steps.memer.outputs.meme }}"
          echo "${{ steps.memer.outputs.title }}"
          echo "${{ steps.memer.outputs.source }}"

      - name: Create comment
        uses: peter-evans/create-or-update-comment@v1.3.0
        id: couc
        with:
          issue-number: ${{ github.event.number }}
          body: |
            πŸŽ‰πŸŽ‰ Thanks for opening this PR πŸ€—
            Please wait while the maintainer(s) reviews it

            Meanwhile have a look at this 😝 :

            > **${{ steps.memer.outputs.title }}**
            ![meme](${{ steps.memer.outputs.meme }})
            <sub>ℹ️ <a href="${{ steps.memer.outputs.source }}">Source</a> [ Powered By πŸ”₯ <a href="https://github.com/Bhupesh-V/memer-action">Memer Action</a> ]</sub>

Inputs

Memer Action accepts only 1 input.

  • filter: Sort Memes posts from reddit. Only 4 values are acceptable, hot, top, new & rising.
steps:
- uses: actions/checkout@master
- name: Run action
  id: myaction

  uses: Bhupesh-V/memer-action@master
  with:
    filter: new

- name: Check outputs
    run: |
    echo "Outputs - ${{ steps.myaction.outputs.title }}"
    echo "Outputs - ${{ steps.myaction.outputs.meme }}"
    echo "Outputs - ${{ steps.myaction.outputs.source }}"

Outputs

Memer Action sets 3 outputs.

  • title: The title of the post on reddit
  • meme: The meme image link
  • source: The Source of the Meme (post on reddit)
steps:
- uses: actions/checkout@master
- name: Run action
  id: myaction

  uses: Bhupesh-V/memer-action@master

- name: Check outputs
    run: |
    echo "Outputs - ${{ steps.myaction.outputs.title }}"
    echo "Outputs - ${{ steps.myaction.outputs.meme }}"
    echo "Outputs - ${{ steps.myaction.outputs.source }}"

Author

πŸ‘€ Bhupesh Varshney

πŸ’™ Credits

☺️ Show your support

Support me by giving a ⭐️ if this project helped you! or just Twitter URL

πŸ“ License

Copyright Β© 2020 Bhupesh Varshney.
This project is MIT licensed.