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