From f786b4aa8ddd09215fcb0783b2e949abd6adeab1 Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Wed, 15 May 2024 11:05:42 -0700 Subject: [PATCH] add name: Test PR Author Signed-off-by: Prudhvi Godithi --- .github/workflows/sample-test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/sample-test.yml diff --git a/.github/workflows/sample-test.yml b/.github/workflows/sample-test.yml new file mode 100644 index 0000000000..346521bc03 --- /dev/null +++ b/.github/workflows/sample-test.yml @@ -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 }}"