Testing bug #6
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: | |
types: | |
- opened | |
issues: | |
types: | |
- opened | |
jobs: | |
greeting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if it's the first interaction | |
id: check_first_interaction | |
run: | | |
echo "is_first_interaction=true" >> $GITHUB_ENV | |
if [ "${{ github.event_name }}" == 'pull_request_target' ]; then | |
echo "is_first_interaction=false" >> $GITHUB_ENV | |
fi | |
- name: Greet new contributors | |
if: steps.check_first_interaction.outputs.is_first_interaction == 'true' | |
run: | | |
echo "Welcome to our repository! Thank you for opening an issue. We appreciate your feedback and will address it as soon as possible." | |
echo "Hello! Thank you for your contribution. We will review your pull request and provide feedback shortly. Keep up the good work!" | |
- name: Greet returning contributors | |
if: steps.check_first_interaction.outputs.is_first_interaction == 'false' | |
run: | | |
echo "Hello again! Thank you for your continued support and contribution. We appreciate your involvement in our repository." |