Add Owens Corning (#588) #1374
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: Auto Organizer on Pull Requests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
table-auto-organizer: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Run auto_organizer.py | |
run: python ./scripts/auto_organizer.py | |
- name: Check for Potential Fixes | |
id: changes | |
run: | | |
git diff --quiet && echo "No changes" || echo "::set-output name=changes_detected::true" | |
- name: Commit and Push New Fixes | |
if: steps.changes.outputs.changes_detected | |
run: | | |
git config --global user.name "GitHub Actions Bot" | |
git config --global user.email "github-actions-bot@example.com" | |
git add . | |
git commit -m "Sort Company List Script' [skip ci]" | |
git push |