prettier
build-develop-branch / build-branch (push) Successful in 42s Details
/ prettier (pull_request) Successful in 17s Details
build-develop-branch / delete-develop (pull_request) Has been skipped Details

This commit is contained in:
gilesb 2023-10-24 00:20:37 +01:00
parent 88b5632c3b
commit cc68a84653
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
on:
pull_request:
branches: [master]
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: http://sigyl.com:3000/actions/checkout@v3.5.4
with:
token: ${{ secrets.BOT_TOKEN }}
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
# This is important to fetch the changes to the previous commit
fetch-depth: 0
- name: Prettify code
uses: creyD/prettier_action@v4.3
with:
# This part is also where you can pass other options, for example:
prettier_options: --write **/*.{js,md}
only_changed: true