Invite a new user #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |