name: Greetings

on: 
  issues:
    types: [opened]
  pull_request:
    types: [opened, ready_for_review]
      
jobs:
  greeting:
    runs-on: ubuntu-latest
    permissions:
      issues: write
      pull-requests: write
    steps:
    - uses: actions/first-interaction@main
      with:
        repo_token: ${{ secrets.GITHUB_TOKEN }}
        issue_message: 'Hey @${{ github.actor }}! Thank you for contributing to my filterlist. Do you also like to sponsor this project?'
        pr_message: 'Hey @${{ github.actor }}! Thanks for your first pull request in this repository. Would you consider to sponsor me?'
