Skip to content

Commit

Permalink
add name: Test PR Author
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi committed May 15, 2024
1 parent a17589a commit f786b4a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/sample-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test PR Author
on:
pull_request:
types: [opened, synchronize]

jobs:
check-pr-author:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log PR Author
run: echo "This pull request was created by ${{ github.event.pull_request.user.login }}"

- name: Skip based on PR author
if: github.event.pull_request.user.login != 'prudhvigodithi'
run: echo "This pull request was created by ${{ github.event.pull_request.user.login }}"

0 comments on commit f786b4a

Please sign in to comment.