Skip to content

Commit

Permalink
prettier test
Browse files Browse the repository at this point in the history
  • Loading branch information
Whisker17 committed Jul 27, 2023
1 parent 5eaeb85 commit d0040b6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/prettier_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,27 @@ jobs:
- name: Install Prettier
run: npm install prettier --global

- name: Format Files
- name: Get Modified Files
id: modified-files
run: |
prettier --write .
modified_files=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }})
echo "MODIFIED_FILES=$modified_files" >> $GITHUB_ENV
- name: Format Modified Files
if: ${{ env.MODIFIED_FILES != '' }}
run: |
modified_files=${{ env.MODIFIED_FILES }}
prettier --write $modified_files
- name: Commit Changes
if: ${{ env.MODIFIED_FILES != '' }}
run: |
git config --global user.name "Whisker17"
git config --global user.email "[email protected]"
git add .
git commit -m "Auto-format code with Prettier [skip ci]"
git commit -m "Auto-format code with Prettier [skip ci]" --amend --no-edit
- name: Push Changes
if: ${{ env.MODIFIED_FILES != '' }}
run: |
branch_name=${{ github.ref }}
git push origin $branch_name
git push origin $branch_name --force-with-lease
2 changes: 2 additions & 0 deletions evaluations/AdMeta_1_0xCaso.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Evaluation



- **Status:** Accepted
- **Application Document:** https://github.com/w3f/Grants-Program/blob/master/applications/AdMeta.md
- **Milestone:** 1
Expand Down

0 comments on commit d0040b6

Please sign in to comment.