From 467c150ccabc7a375f5ff8148b054e2bfab3465d Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sat, 18 Feb 2023 07:29:28 +0800 Subject: [PATCH] Update pr.yml --- .github/workflows/pr.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index c2e7b48..adef93a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -15,3 +15,13 @@ jobs: with: repo-token: "${{ secrets.GITHUB_TOKEN }}" sync-labels: true + check-star: + name: Check Star + runs-on: ubuntu-latest + steps: + - { uses: gacts/is-stargazer@v1, with: { username: "${{ github.event.pull_request.user.login }}" }, id: check-star } + + - if: steps.check-star.outputs.is-stargazer != 'true' + uses: actions/github-script@v6 + with: + script: core.setFailed('⭐ Please star the repository!')