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