All Projects → Bhupesh-V → memer-action

Bhupesh-V / memer-action

Licence: MIT License
A GitHub Action for Programmer Memes xD

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to memer-action

assign-one-project-github-action
Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
Stars: ✭ 140 (+566.67%)
Mutual labels:  utilities, actions, project-management
loseyourself
Lose yourself, programmer edition. Based on a tweet by @kvlly!
Stars: ✭ 34 (+61.9%)
Mutual labels:  reddit, meme
esmBot-legacy
Discord bot with mostly entertainment functions (legacy version)
Stars: ✭ 16 (-23.81%)
Mutual labels:  fun, memes
FunUtils
Some codes i wrote to help me with me with my daily errands ;)
Stars: ✭ 43 (+104.76%)
Mutual labels:  fun, utilities
recent-activity
Add your recent activity to your profile readme!
Stars: ✭ 87 (+314.29%)
Mutual labels:  actions, workflows
changed-files
Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.
Stars: ✭ 733 (+3390.48%)
Mutual labels:  actions, workflows
verify-changed-files
Github action to verify file changes that occur during the workflow execution.
Stars: ✭ 62 (+195.24%)
Mutual labels:  actions, workflows
spongebob
SPoNgeBOb-CAse cONveRSioN ToOLs
Stars: ✭ 24 (+14.29%)
Mutual labels:  meme, memes
ssh2actions
Connect to GitHub Actions VM via SSH for interactive debugging
Stars: ✭ 62 (+195.24%)
Mutual labels:  actions, workflows
jina-meme-search
Meme search engine built with Jina neural search framework. Search with captions or image files to find matching memes.
Stars: ✭ 21 (+0%)
Mutual labels:  meme, memes
changelog-enforcer
A simple GitHub action that enforces that a maintained changelog is kept up to date.
Stars: ✭ 32 (+52.38%)
Mutual labels:  actions, project-management
pscale-workflow-helper-scripts
Workflows and helper scripts around the PlanetScale DB workflow to automate database branch creation, association, update and merge directly out of your pull/merge request or favourite CI/CD.
Stars: ✭ 42 (+100%)
Mutual labels:  actions, pull-requests
release-changelog-builder-action
A GitHub action that builds your release notes / changelog fast, easy and exactly the way you want.
Stars: ✭ 515 (+2352.38%)
Mutual labels:  actions, pull-requests
dankcli
CLI Image Captioning Tool or Meme Generator which automatically adds whitespace and text to top
Stars: ✭ 40 (+90.48%)
Mutual labels:  memes, dankmemes
reddit-image-fetcher
A JavaScript package for fetching reddit images, memes, wallpapers and more.
Stars: ✭ 40 (+90.48%)
Mutual labels:  reddit, memes
branch-names
Github action to retrieve branch or tag names with support for all events.
Stars: ✭ 99 (+371.43%)
Mutual labels:  actions, workflows
Programming Language Subreddits And Their Choice Of Words
How do the different communities talk?
Stars: ✭ 752 (+3480.95%)
Mutual labels:  fun, reddit
Memetastic
Meme Creator for Android - Simple & Ad-Free
Stars: ✭ 206 (+880.95%)
Mutual labels:  fun, memes
nrwl-nx-action
A GitHub Action to wrap Nrwl Nx commands in your workflows.
Stars: ✭ 163 (+676.19%)
Mutual labels:  actions, workflows
mediaforge
A Discord bot for editing and creating videos, images, GIFs, and more!
Stars: ✭ 45 (+114.29%)
Mutual labels:  fun, meme

Memer Action

memer-action-logo

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

Demo

demomemer

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.
  • The reply action is performed by create-or-update-comment
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/[email protected]
        id: couc
        with:
          issue-number: ${{ github.event.number }}
          body: |
            🎉🎉 Thanks for opening this PR/Issue 🤗
            Please wait while the maintainer(s) review 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 following input variables.

  • filter (optional) : Sort Memes posts from reddit. Only 4 values are acceptable, hot, top, new & rising. By default the memes are "hot".
  • fallback (optional) : A JSON string for showing a Fallback meme, in case there are no memes available. By default the fallback output is
FALLBACK = {
    "meme_link": "https://raw.githubusercontent.com/Bhupesh-V/memer-action/master/images/header.png",
    "title": "Oops :( looks like we are out of memes.",
    "src": "https://github.com/Bhupesh-V/memer-action",
}
steps:
- uses: actions/checkout@master
- name: Run action
  id: myaction

  uses: Bhupesh-V/memer-action@master
  with:
    filter: new
    fallback: '{"meme_link":"<meme-url>", "title": "<meme-title>", "src": "<meme-source-url>"}'

- 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 }}"

Note: This action does not work in pull_request workflows when triggered by a fork opening a pull request in the upstream repository. This is due to restrictions put in place by GitHub Actions. See here for further explanation.

💙 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].