Skip to content

Commit d88b657

Browse files
Create summarize-ambassadors.yml
1 parent 1db350c commit d88b657

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Summarize Ambassador Applications
2+
3+
on:
4+
workflow_dispatch: # Manual trigger only
5+
6+
jobs:
7+
summarize:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v3
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.x'
18+
19+
- name: Install Dependencies
20+
run: pip install PyGithub
21+
22+
- name: Run Summary Script
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
GITHUB_REPOSITORY: pytorch-fdn/foundation-programs
26+
run: python .github/scripts/summarize_applications.py
27+
28+
- name: Commit and Push Summary
29+
run: |
30+
git config --global user.email "[email protected]"
31+
git config --global user.name "GitHub Actions"
32+
git add SUMMARY.md
33+
git commit -m "Update Ambassador Application Summary"
34+
git push

0 commit comments

Comments
 (0)