Check if actor belongs to our organisation to enable workflows
https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action
run ncc build index.js --license licenses.txt
An example workflow using the action:
name: My Workflow
on:
push:
pull_requests:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check if organization member
id: check_org_member
uses: Mind-Sports-Games/check-org-member@master
with:
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Comment
if: ${{ steps.check_org_member.outputs.result == 'false' }}
run: |
echo User Does Not Belong to Mind-Sports-Games
exit 1