diff options
author | James McCoy <jamessan@jamessan.com> | 2021-10-17 21:18:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 21:18:27 -0400 |
commit | 389a898586c1ed2c6cd50f3099ff50fe0645f86f (patch) | |
tree | 70a4b2542ebe1e1f06a320fb39ebfc9ab23fd01a | |
parent | e62cac5be104ccd47e747d3404b0c9824d5f5d99 (diff) | |
parent | 4c4a41c70c8a86efd6b9168bafc9ad2d2f21e7e0 (diff) | |
download | rneovim-389a898586c1ed2c6cd50f3099ff50fe0645f86f.tar.gz rneovim-389a898586c1ed2c6cd50f3099ff50fe0645f86f.tar.bz2 rneovim-389a898586c1ed2c6cd50f3099ff50fe0645f86f.zip |
Merge pull request #16034 from rcowsill/ci/labeler/no-checkout
ci(labeler): Remove checkout steps
-rw-r--r-- | .github/workflows/labeler.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 4aa56f5d0e..76fc8793fa 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -19,12 +19,12 @@ jobs: pull-requests: write env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + PR_NUMBER: ${{ github.event.pull_request.number }} + PR_TITLE: ${{ github.event.pull_request.title }} steps: - - uses: actions/checkout@v2.3.1 - - run: gh pr checkout ${{ github.event.pull_request.number }} - # Extract type and try to add it as a label - - run: gh pr edit --add-label "$(echo "${{ github.event.pull_request.title }}" | sed -E 's|([[:alpha:]]+)(\(.*\))?!?:.*|\1|')" || true + - run: gh pr edit "$PR_NUMBER" --add-label "$(echo "$PR_TITLE" | sed -E 's|([[:alpha:]]+)(\(.*\))?!?:.*|\1|')" || true # Extract scope and try to add it as a label - - run: gh pr edit --add-label "$(echo "${{ github.event.pull_request.title }}" | sed -E 's|[[:alpha:]]+\((.+)\)!?:.*|\1|')" || true + - run: gh pr edit "$PR_NUMBER" --add-label "$(echo "$PR_TITLE" | sed -E 's|[[:alpha:]]+\((.+)\)!?:.*|\1|')" || true |