From 209d824790635951c127f68227c704270fc88caa Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Fri, 27 Jan 2023 10:21:31 -0800 Subject: [PATCH] Fix label workflow actions --- .github/workflows/labels.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 99947fb3..e239b439 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -1,16 +1,22 @@ name: labels -# This workflow is triggered when a label is added to an issue. on: issues: - types: labeled + types: [labeled, unlabeled] + pull_request: + types: [labeled, unlabeled] + +permissions: + contents: read + issues: write + pull-requests: write jobs: label-actions: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: hramos/label-actions@v1 + - uses: dessant/label-actions@v3 with: - configuration-path: .github/labels-config.yml - repo-token: ${{ secrets.GITHUB_TOKEN }} + config-path: .github/labels-config.yml + github-token: ${{ github.token }}