Skip to content

Commit 74265dc

Browse files
authored
Re-add invite by star workflow (#28)
1 parent 69cbf19 commit 74265dc

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: ⭐ Invite New User on Star
2+
3+
on:
4+
watch:
5+
types: [started]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
invite-user:
12+
name: 🙋‍♂️ Invite New GitHub User
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: 📥 Checkout Repository
17+
uses: actions/checkout@v6
18+
with:
19+
persist-credentials: false
20+
21+
- name: 🐍 Set Up Python
22+
uses: actions/setup-python@v6
23+
with:
24+
python-version: '3.13'
25+
26+
- name: 🔄 Cache pip Dependencies
27+
uses: actions/cache@v5
28+
with:
29+
path: ~/.cache/pip
30+
key: ${{ runner.os }}-pip-${{ hashFiles('.github/workflows/requirements.txt') }}
31+
restore-keys: |
32+
${{ runner.os }}-pip-
33+
34+
- name: 📦 Install Python Dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
if [ -f .github/workflows/requirements.txt ]; then
38+
pip install -r .github/workflows/requirements.txt
39+
fi
40+
41+
- name: 🤖 Run Auto-Invite Script
42+
run: python .github/workflows/AutoInviteToOrgByStar.py
43+
env:
44+
MY_GITHUB_KEY: ${{ secrets.MY_GITHUB_KEY }}
45+
COMMUNITY_TEAM_ID: ${{ secrets.COMMUNITY_TEAM_ID }}

0 commit comments

Comments
 (0)