diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index e21922c..ee28691 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -1,7 +1,7 @@ name: Prettier Format and Commit on: - pull_request: + push: branches: - main - 'refs/heads/*' @@ -13,8 +13,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - name: Set up Node.js uses: actions/setup-node@v4 @@ -24,6 +22,9 @@ jobs: - name: Install dependencies run: npm install + - name: Pull latest changes + run: git pull + - name: Run Prettier run: npx prettier --write . @@ -43,8 +44,13 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Push changes + - name: Create Pull Request if: env.changes_committed == 'true' - run: git push origin HEAD:${{ github.head_ref }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: peter-evans/create-pull-request@v5 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "chore: format code with Prettier" + branch: prettier-fix + title: "chore: format code with Prettier" + body: "This PR formats the code with Prettier." + labels: prettier diff --git a/docs/objects/effects/ImageSky.md b/docs/objects/effects/ImageSky.md index 2e310c6..f2d4c8d 100644 --- a/docs/objects/effects/ImageSky.md +++ b/docs/objects/effects/ImageSky.md @@ -21,6 +21,9 @@ The image ID of the back side of the skybox. + + + ### BottomId:int { property } The image ID of the bottom side of the skybox.