Skip to content

Commit

Permalink
Attempt at fixing greetings.yml
Browse files Browse the repository at this point in the history
Added a conditional that covers both pr and issue events
  • Loading branch information
SeaBebop authored Oct 23, 2023
1 parent 9d4bb4a commit b01a7df
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Thank you ${{ github.event.pull_request.user.login }} 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 ${{ github.event.pull_request.user.login }}. We'll will review it as soon as possible 🙌❤️"
- 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 🙌❤️"

0 comments on commit b01a7df

Please sign in to comment.