Skip to content

Check if actor belongs to our organisation to enable workflows

License

Notifications You must be signed in to change notification settings

Mind-Sports-Games/check-org-member

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check-org-member

Check if actor belongs to our organisation to enable workflows

Setup guide used

https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action

Build

run ncc build index.js --license licenses.txt

Usage

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

About

Check if actor belongs to our organisation to enable workflows

Resources

License

Stars

Watchers

Forks

Packages

No packages published