Skip to content

Commit

Permalink
Merge 6e9fbb7 into 7b2c180
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence authored Aug 15, 2024
2 parents 7b2c180 + 6e9fbb7 commit 75f6e6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Prettier
on:
pull_request:
paths:
- 'src/**/*.{js,jsx,ts,tsx}'
- 'src/**/*.js'
- '.github/workflows/prettier.yml'
types:
- opened
Expand Down Expand Up @@ -38,7 +38,9 @@ jobs:
echo "Fixing the following files:"
echo "$CHANGED_FILES"
echo "$CHANGED_FILES" | xargs npx prettier --write
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
# Join the filenames into a single line with space separation
JOINED_FILES=$(echo "$CHANGED_FILES" | tr '\n' ' ')
echo "CHANGED_FILES=$JOINED_FILES" >> $GITHUB_ENV
else
echo "No files to format"
fi
Expand All @@ -52,7 +54,10 @@ jobs:
git config user.email "[email protected]"
git add .
git commit -m "Apply Prettier formatting"
git push
# Push the commit to the branch
git push origin HEAD:$GITHUB_HEAD_REF
DIFF_OUTPUT=$(git diff HEAD~1 HEAD)
echo "DIFF_OUTPUT<<EOF" >> $GITHUB_ENV
echo "$DIFF_OUTPUT" >> $GITHUB_ENV
Expand Down
3 changes: 1 addition & 2 deletions src/components/callout.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ const Callout = ({ type, children, title, link }) => {
</div>
)
}

export default Callout
export default Callout

0 comments on commit 75f6e6e

Please sign in to comment.