From d46e0ce8c79acd49b08875a9665f34ffa07a477a Mon Sep 17 00:00:00 2001 From: Amaresh S M <30730124+amareshsm@users.noreply.github.com> Date: Mon, 16 Sep 2024 21:44:28 +0530 Subject: [PATCH 1/3] ci: Update the actions version to the latest --- .github/workflows/ci.yml | 4 ++-- .github/workflows/label.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bffb495a6..86f105aa0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,9 +11,9 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: "lts/*" cache: "npm" diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 857c8dfa6..79e23d2a6 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -16,6 +16,6 @@ jobs: pull-requests: write steps: - - uses: actions/labeler@v2 + - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From 374920395cedde2ae2f5b8dac832799983278e88 Mon Sep 17 00:00:00 2001 From: Amaresh S M <30730124+amareshsm@users.noreply.github.com> Date: Wed, 18 Sep 2024 02:28:15 +0530 Subject: [PATCH 2/3] update label workflow to v5 --- .github/labeler.yml | 8 ++++++-- .github/workflows/label.yml | 16 +++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index cb97a9901..73e34377d 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,5 +1,9 @@ playground: - - playground/**/* +- any: + - changed-files: + - any-glob-to-any-file: ['playground/**/*'] translation: - - src/_data/sites/* +- any: + - changed-files: + - any-glob-to-any-file: ['src/_data/sites/*'] diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 79e23d2a6..84f0610e9 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -5,17 +5,15 @@ # file with configuration. For more information, see: # https://github.com/actions/labeler -name: Labeler -on: [pull_request_target] - +name: "Pull Request Labeler" +on: pull_request_target jobs: - label: - runs-on: ubuntu-latest + labeler: permissions: contents: read pull-requests: write - + runs-on: ubuntu-latest steps: - - uses: actions/labeler@v5 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: actions/labeler@v5 + with: + sync-labels: true From 4dc2a5e5a86d659bf7da7bb66ef1b5532edbd75a Mon Sep 17 00:00:00 2001 From: Amaresh S M <30730124+amareshsm@users.noreply.github.com> Date: Wed, 18 Sep 2024 02:33:26 +0530 Subject: [PATCH 3/3] Update label.yml --- .github/workflows/label.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 84f0610e9..0878f55af 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -6,7 +6,8 @@ # https://github.com/actions/labeler name: "Pull Request Labeler" -on: pull_request_target +on: +- pull_request_target jobs: labeler: permissions: