From 3407853e0bd34232ada96eab3afe497aecffd6c9 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sun, 4 Dec 2022 15:07:53 +0800 Subject: [PATCH] Create star.yml --- .github/workflows/star.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/star.yml diff --git a/.github/workflows/star.yml b/.github/workflows/star.yml new file mode 100644 index 00000000..1807d6c8 --- /dev/null +++ b/.github/workflows/star.yml @@ -0,0 +1,18 @@ +name: Star + +on: + pull_request_target: + types: [opened, synchronize, reopened, ready_for_review, review_requested] # https://bit.ly/3FEj9D4 + branches: [main] + +jobs: + check-user-star: + name: Check + 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 this repository!')