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!')