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: |