Skip to content

KirioXX/employee-of-the-month-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee of the month docker action

Praise your best boy or girl employee in your docs with a lovely gif every month.

E.G.:

<!--- employe-of-the-month-action: Start --->
## ✨✨ Employee of the month December ✨✨

![Employee of the month](https://media3.giphy.com/media/fGFL53eiN8OAAPWd2I/giphy.gif)
<!--- employe-of-the-month-action: End --->

Inputs

tag-to-search:

Required Tag to search for your employee. Default: "dog"

title:

Required Tag to search for your employee. Default: "✨✨ Employee of the month {{.Month}}✨✨"

page:

Required Page to update. Default: "Home.md"

Environment Variables

GIPHY_API_KEY:

Required Your personal giphy API token. Best to store in your project secrets. Default: ""

GITHUB_TOKEN:

Required Your projects github token. You can use the one that comes from the runner or generate one with limited access. Default: ""

Example usage

on:
  schedule:
    # * is a special character in YAML so you have to quote this string
    - cron: "* 0 1 * *"
...
- name: Employer Of The Month
  uses: KirioXX/[email protected]
  with:
    tag-to-search: "cat"
    title: "{{.Month}} good kitty of the month"
    page: "Home.md"
  env:
    GIPHY_API_KEY: ${{secrets.GIPHY_API_KEY}}
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
...