Skip to content

Commit

Permalink
Add GH action to run prettier on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
klembot committed Feb 24, 2024
1 parent 22e09d9 commit 53b77af
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/prettify-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Continuous Integration

on:
pull_request:
branches: [develop]

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false
- name: Prettify code
uses: creyD/[email protected]
with:
only_changed: True
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

0 comments on commit 53b77af

Please sign in to comment.