Skip to content

Commit 2f09155

Browse files
Create extract_contribution_details.yml
1 parent 17b80e1 commit 2f09155

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Extract Ambassador Contribution Details
2+
3+
on:
4+
workflow_dispatch: # Manual trigger
5+
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
extract-details:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: 📥 Checkout Repository
15+
uses: actions/checkout@v3
16+
17+
- name: 🐍 Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.x'
21+
22+
- name: 📦 Install Dependencies
23+
run: pip install PyGithub
24+
25+
- name: 🧠 Run Contribution Extraction Script
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
GITHUB_REPOSITORY: ${{ github.repository }}
29+
run: python .github/scripts/extract_contribution_details.py
30+
31+
- name: ✅ Commit and Push Extracted Details
32+
run: |
33+
git config --global user.email "[email protected]"
34+
git config --global user.name "GitHub Actions"
35+
git add ambassador/contribution_details.csv || true
36+
git commit -m "Extracted ambassador contribution details" || echo "No changes to commit"
37+
git push

0 commit comments

Comments
 (0)