From 971205e8167cc9b637c5d46f4ea4d9167049e6ff Mon Sep 17 00:00:00 2001 From: sahejkm Date: Wed, 29 May 2024 20:22:17 +0800 Subject: [PATCH] test --- .github/labeler.yml | 5 +++++ .github/workflows/after-approval.yml | 11 +++-------- 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000000..c031150fbed --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,5 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. + +extended-tests: + - changed-files: + - any-glob-to-any-file: '**' \ No newline at end of file diff --git a/.github/workflows/after-approval.yml b/.github/workflows/after-approval.yml index dae71ba1693..bb15bdf81f3 100644 --- a/.github/workflows/after-approval.yml +++ b/.github/workflows/after-approval.yml @@ -17,11 +17,6 @@ jobs: pull-requests: write steps: - uses: actions/checkout@v4 - - name: Add label for extended tests - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_REPO: ${{ github.repository }} - NUMBER: ${{ github.event.pull_request.number }} - run: | - echo "Adding label 'extended-tests' to PR $NUMBER" - gh pr edit "$NUMBER" --add-label "extended-tests" || (echo "Failed to add label" && exit 1) + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file