β Invite New User on Star #36
This file contains hidden or 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
| name: β Invite New User on Star | |
| on: | |
| watch: | |
| types: [started] | |
| jobs: | |
| invite-user: | |
| name: πββοΈ Invite New GitHub User | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: π Set Up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| - name: π Cache pip Dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('.github/workflows/requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: π¦ Install Python Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ -f .github/workflows/requirements.txt ]; then | |
| pip install -r .github/workflows/requirements.txt | |
| fi | |
| - name: π€ Run Auto-Invite Script | |
| run: python .github/workflows/AutoInviteToOrgByStar.py | |
| env: | |
| MY_GITHUB_KEY: ${{ secrets.MY_GITHUB_KEY }} | |
| COMMUNITY_TEAM_ID: ${{ secrets.COMMUNITY_TEAM_ID }} |