Do not manually set commit author #10
Workflow file for this run
This file contains 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: Periodically scrape repos | |
on: | |
push: # Temp | |
workflow_dispatch: # Manual run | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install depenencies | |
run: pip install requests | |
- name: Run Python script for scraping | |
run: | | |
cd scripts | |
python scrape-for-contributors.py | |
- name: Check for changes | |
id: git_diff | |
run: | | |
git add . | |
if git diff-index --quiet HEAD; then | |
echo "changes=false" >> $GITHUB_OUTPUT | |
else | |
echo "changes=true" >> $GITHUB_OUTPUT | |
fi | |
- name: Commit changes | |
if: ${{ steps.git_diff.outputs.changes == 'true' }} | |
run: | | |
git commit -m "Update community contributors list" | |
- name: Create Pull Request | |
if: ${{ steps.git_diff.outputs.changes == 'true' }} | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: "Automated code changes" | |
branch: automated/update-community-contributes | |
title: "Update community contributors" | |
body: "Updates the list of community contributors" |