|
@@ -1,18 +1,16 @@
|
|
name: auto-format
|
|
name: auto-format
|
|
on:
|
|
on:
|
|
- pull_request:
|
|
|
|
|
|
+ push:
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
- prettier:
|
|
|
|
|
|
+ format:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
|
+ if: github.repository != 'jMonkeyEngine/jmonkeyengine'
|
|
steps:
|
|
steps:
|
|
- name: Checkout
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
uses: actions/checkout@v3
|
|
with:
|
|
with:
|
|
- # 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
|
|
|
|
|
|
+ fetch-depth: 0
|
|
- name: Prettify code
|
|
- name: Prettify code
|
|
uses: creyD/[email protected]
|
|
uses: creyD/[email protected]
|
|
with:
|
|
with:
|