diff --git a/.github/workflows/lua-format.yml b/.github/workflows/lua-format.yml index 5a9a644e7aa..7bb4780ec1c 100644 --- a/.github/workflows/lua-format.yml +++ b/.github/workflows/lua-format.yml @@ -4,21 +4,17 @@ on: pull_request: paths: - "data*/**" - merge_group: - push: - paths: - - "data*/**" + jobs: lua-formatter: runs-on: ubuntu-latest steps: - name: Set up Git - if: ${{ github.ref != 'refs/heads/main' }} run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "GitHub Actions" + - name: Actions checkout - if: ${{ github.ref != 'refs/heads/main' }} uses: actions/checkout@v3 with: repository: ${{ github.event.pull_request.head.repo.full_name }} @@ -32,7 +28,7 @@ jobs: args: . - name: Run add and commit - if: ${{ github.ref != 'refs/heads/main' }} + if: ${{ ! github.event.pull_request.head.repo.fork }} uses: EndBug/add-and-commit@v9 with: author_name: GitHub Actions