Add links to the countries #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Greetings | |
on: [pull_request_target, issues] | |
jobs: | |
greeting: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Set Condition | |
id: condition | |
run: | | |
if [[ "${{ github.event_name }}" == 'issues' ]]; then | |
echo "username=${{ github.event.issue.user.login }}" >> $GITHUB_ENV | |
else | |
echo "username=${{ github.event.pull_request.user.login }}" >> $GITHUB_ENV | |
fi | |
- name: Greet User | |
uses: actions/first-interaction@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
issue-message: "Thank you @${{ env.username }} for bringing up this issue to help enhance our project even further! We'll review it soon. 🙌❤️" | |
pr-message: "Thank you for opening a pull request @${{ env.username }}. We'll will review it as soon as possible 🙌❤️" |