File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 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 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments