Extract and Deduplicate Ambassador Applications #5
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: Summarize Ambassador Applications | |
on: | |
workflow_dispatch: # Manual trigger only | |
jobs: | |
summarize: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install Dependencies | |
run: pip install PyGithub | |
- name: Run Summary Script | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_REPOSITORY: pytorch-fdn/foundation-programs | |
run: python .github/scripts/summarize_applications.py | |
- name: Commit and Push Summary | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
git add ambassador/SUMMARY.md ambassador/SUMMARY.csv | |
git commit -m "Update Ambassador Application Summary" | |
git push |