How to check actor is admin?

Hi! I have a question to check if the action is a admin of a repo or not. Current I hard code all the names like:

      - name: guard for admins
        if: ${{ github.actor != 'billypchan' && github.actor != 'otherAdmin'}}
        run: |
          echo ${{ github.actor }} is not allowed for releasing
          exit 1
1 Like