Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
l-white authored Oct 7, 2023
2 parents ec81970 + 1e67102 commit 462a4ca
Show file tree
Hide file tree
Showing 8 changed files with 18,264 additions and 1,955 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/run-sort-users-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,34 @@ jobs:
name: Run sort-users.py
runs-on: ubuntu-latest
steps:
- name: Pull Repo
uses: actions/checkout@v2
- name: Checkout PR
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- name: Install Python 3
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Run script
- name: Sort users
run: python sort-users.py
- name: Push Back Formatted Code
- name: Change CONTRIBUTORS file
run: |
# configure git
git config --global user.name "Zero to Mastery"
git config --global user.email "[email protected]"
echo "Changed" > CONTRIBUTORS.md
- name: Check for changes
uses: tj-actions/[email protected]
id: changed_files
with:
files: |
CONTRIBUTORS.md
- name: Display changes to CONTRIBUTORS file
if: steps.changed_files.outputs.files_changed == 'true'
run: |
echo "Changed files: ${{ steps.changed_files.outputs.changed_files }}"
- name: Commit changes
if: steps.changed_files.outputs.files_changed == 'true'
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
git commit -a -m "(CI) format code"
git push
Loading

0 comments on commit 462a4ca

Please sign in to comment.