Skip to content

Enhancements to GitHub Actions Workflows #235

Enhancements to GitHub Actions Workflows

Enhancements to GitHub Actions Workflows #235

Workflow file for this run

name: Greetings
on: [pull_request, issues]
jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Send Greeting Message
id: send-greeting
uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hello @${{ github.actor }}! πŸ‘‹ Welcome to the project! πŸŽ‰ Your issue is the first step towards making this project better, and we appreciate it. We will review it as soon as possible. In the meantime, feel free to explore the project and contribute more. Happy coding! πŸš€"
pr-message: "Congratulations @${{ github.actor }}! πŸŽ‰ Your first pull request is a milestone! 🏁 You're officially a contributor now. We appreciate your effort and your contribution will be reviewed shortly. Keep up the good work, and happy coding! πŸš€"
- name: Check if Greeting Sent
if: steps.send-greeting.outputs.issue-message == 'sent' || steps.send-greeting.outputs.pr-message == 'sent'
run: echo "Greeting message sent successfully."