Skip to content

Invite a new user

Invite a new user #2

on:
watch:
# When someone stars a repository
types: [started]
name: Invite a new user
jobs:
build:
runs-on: ubuntu-latest # has Python 3 installed
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install requests # Actually already installed
if [ -f ./.github/workflows/requirements.txt ]; then pip install -r requirements.txt; fi
- name: Execute script
run: |
python ./.github/workflows/AutoInviteToOrgByStar.py
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ORG_NAME: ${{ secrets.ORG_NAME }}
TEAM_NAME: ${{ secrets.TEAM_NAME }}