bntzio / warm-welcome-action

GitHub Action to give a warm welcome on PRs 💖
MIT License
3 stars 0 forks source link

warm welcome action 🤗

GitHub Action to give a warm welcome on PRs 💖

GitHub release (latest by date)

About

warm-welcome-action is a very simple GitHub Action I made to learn the basics of how actions work ⚙️ and for the dev.to actions hackathon 🎉

What this action does is every time a user submits a new pull request on a repository with this action installed, it will post a warm welcome gif to make the person who made the PR well, welcome.

How to use

Create a .github/workflows/action.yml file in the repository you want to install this action, then add the following to it:

name: "Warm Welcome"
on:
  pull_request:
  issues:
    types: [opened]
  push:
    branches:
      - master
jobs:
  test:
    if: github.event_name == 'pull_request'
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2.0.0
    - name: grab and post gif and message
      id: warm_welcome
      uses: bntzio/warm-welcome-action@latest
      with: 
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        GIPHY_TOKEN: ${{ secrets.GIPHY_TOKEN }}

That's all! 🙂 now every time someone opens a new pull request on your repository this action will trigger and it'll publish a warm welcoming GIF! 💖

Enjoy and welcome! 😄

welcome_gif

License

MIT © bntz.io