From ae273d7447128f329942ab8084c82120752eb61a Mon Sep 17 00:00:00 2001 From: Ashish Kurmi <100655670+ashishkurmi@users.noreply.github.com> Date: Sun, 8 Dec 2024 23:09:34 +0530 Subject: [PATCH] Update format.yml Signed-off-by: Ashish Kurmi <100655670+ashishkurmi@users.noreply.github.com> --- .github/workflows/format.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index c98b8762..1208a5de 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -9,7 +9,7 @@ on: types: [opened, edited] discussion: types: [created] - pull_request: + pull_request_target: branches: [main] types: [opened, closed, synchronize, review_requested] @@ -18,9 +18,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Run Ultralytics Formatting - uses: ultralytics/actions@main + uses: ultralytics/actions@eb1201bd933b9f6096c64525ccaee3684c91bf14 with: - token: ${{ secrets._GITHUB_TOKEN || secrets.GITHUB_TOKEN}} + token: ${{ secrets._GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated labels: true # autolabel issues and PRs python: true # format Python code and docstrings prettier: true # format YAML, JSON, Markdown and CSS