Skip to content

Replace deprecated set-output commands #6

Replace deprecated set-output commands

Replace deprecated set-output commands #6

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: Commit changes
id: git_diff
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
if git diff-index --quiet HEAD; then
echo "{changes}={false} >> $GITHUB_OUTPU"
else
echo "{changes}={true} >> $GITHUB_OUTPU"
fi
- name: Commit changes
if: steps.git_diff.outputs.changes == 'true'
run: |
git commit -m "Automated code changes"