diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 00000000..82de8263 --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,23 @@ +name: Greetings + +on: [pull_request, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + if: env.month != 'Oct' + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: 'Thank you for your first issue! ✨😊' + pr-message: 'Thank you for contributing to this project! ✨😊' + - uses: actions/first-interaction@v1 + if: env.month == 'Oct' + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: 'Thank you for your first issue! Happy Hacktoberfest!!! ✨🎃👕✨' + pr-message: 'Thank you for contributing to this project. Happy Hacktoberfest!!! ✨🎃👕'