aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2022-01-08 16:10:47 -0500
committerGitHub <noreply@github.com>2022-01-08 16:10:47 -0500
commit2e5bafa04c0388a6050ef6c9b4f5c875a07b1693 (patch)
tree8b7a6db58d1e44177f6d0e65d8b875bb5193086b
parent6c4b9c914b71241580b2ea1e1c0dd54aa13bb39f (diff)
parent559aa4179c639f5ebd45474a36361343ac2371cf (diff)
downloadrneovim-2e5bafa04c0388a6050ef6c9b4f5c875a07b1693.tar.gz
rneovim-2e5bafa04c0388a6050ef6c9b4f5c875a07b1693.tar.bz2
rneovim-2e5bafa04c0388a6050ef6c9b4f5c875a07b1693.zip
Merge pull request #17000 from dundargoc/ci/use-continue-on-error
ci: use continue-on-error instead of "|| true"
-rw-r--r--.github/workflows/labeler.yml12
1 files changed, 8 insertions, 4 deletions
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index f89c83e26f..3de0c453a5 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -3,6 +3,7 @@ on:
pull_request_target:
types: [opened]
jobs:
+
triage:
runs-on: ubuntu-latest
permissions:
@@ -12,6 +13,7 @@ jobs:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
+
type-scope:
runs-on: ubuntu-latest
needs: ["triage"]
@@ -24,7 +26,9 @@ jobs:
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_TITLE: ${{ github.event.pull_request.title }}
steps:
- # Extract type and try to add it as a label
- - 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 "$PR_NUMBER" --add-label "$(echo "$PR_TITLE" | sed -E 's|[[:alpha:]]+\((.+)\)!?:.*|\1|')" || true
+ - name: "Extract commit type and add as label"
+ continue-on-error: true
+ run: gh pr edit "$PR_NUMBER" --add-label "$(echo "$PR_TITLE" | sed -E 's|([[:alpha:]]+)(\(.*\))?!?:.*|\1|')"
+ - name: "Extract commit scope and add as label"
+ continue-on-error: true
+ run: gh pr edit "$PR_NUMBER" --add-label "$(echo "$PR_TITLE" | sed -E 's|[[:alpha:]]+\((.+)\)!?:.*|\1|')"