From 53b77afe1b3e7b41303e5f0abdb6d9bb67283977 Mon Sep 17 00:00:00 2001 From: Chris Klimas Date: Sat, 24 Feb 2024 11:04:09 -0500 Subject: [PATCH] Add GH action to run prettier on PRs --- .github/workflows/prettify-prs.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/prettify-prs.yml diff --git a/.github/workflows/prettify-prs.yml b/.github/workflows/prettify-prs.yml new file mode 100644 index 000000000..5881bb801 --- /dev/null +++ b/.github/workflows/prettify-prs.yml @@ -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/prettier_action@v4.3 + with: + only_changed: True + github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} \ No newline at end of file