From 34518dd3a2f9b38a834a015e03f1eb5a629b3aeb Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Thu, 4 Jul 2024 01:01:15 +0800 Subject: [PATCH] Fix auth-related issues and adjust label manager workflow --- .github/labels.yml | 2 +- .github/workflows/labels.yml | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/labels.yml b/.github/labels.yml index c0a73eb..62338f8 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -9,7 +9,7 @@ - name: duplicate description: This issue or patch/merge request already exists color: cfd3d7 -- name: enchancement +- name: enhancement description: New feature or request color: a2eeef - name: good first issue diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 7baa96f..d706bcb 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -7,23 +7,22 @@ on: paths: - '.github/labels.yml' - '.github/workflows/labels.yml' - pull_request: - paths: - - '.github/labels.yml' - - '.github/workflows/labels.yml' jobs: labeler: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v3 - - - name: Sync labels using config + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ secrets.GH_RTDEV_APP_CLIENT_ID }} + private-key: ${{ secrets.GH_RTDEV_APP_KEY }} + - name: Sync labels using config uses: crazy-max/ghaction-github-labeler@v5 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ steps.app-token.outputs.token }} yaml-file: .github/labels.yml dry-run: ${{ github.event_name == 'pull_request' }} exclude: | -- 2.51.2