Skip to content
users

GitHub Action

Check member exists in GitHub Team

1.0 Latest version

Check member exists in GitHub Team

users

Check member exists in GitHub Team

GitHub Actions to check if an username exists in Team

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Check member exists in GitHub Team

uses: bryantson/[email protected]

Learn more about this action in bryantson/check-member-exists-in-team-actions

Choose a version

check-member-exists-in-team-actions

This GitHub Actions helps to check if a member exists in a GitHub Team

How to run?

name: Test custom GitHub Action

on:
  workflow_dispatch:

jobs:
  check-member:
    runs-on: ubuntu-latest
    name: Check if an user exists
    steps:
      - name: Check if member exists
        id: check-member
        uses: bryantson/[email protected]
        with:
          team_slug: SOME_TEAM_NAME
          org_slug: SOME_ORG_NAME
          gh_token: ${{ secrets.GH_TOKEN }}
          username: SOME_USER_NAME

      - name: Print whether member exists
        run: |
          echo "Does member exists: ${{ steps.check-member.outputs.exists-in-team }}"