Skip to content

Commit 8d2b084

Browse files
committed
chore: update GitHub Actions to use repository context for label management
1 parent b13b597 commit 8d2b084

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/semantic-commit-lint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,14 @@ jobs:
4747
validateSingleCommit: true
4848
- name: Add Failure Label
4949
if: failure()
50+
env:
51+
REPO: ${{ github.repository }}
5052
run: |
5153
gh api repos/{owner}/{repo}/labels -f name="${CUSTOM_PR_LABEL}" -f color="FF0000" || true
52-
gh pr edit "${HEAD}" --add-label "${CUSTOM_PR_LABEL}"
54+
gh pr edit "${HEAD}" --repo "${REPO}" --add-label "${CUSTOM_PR_LABEL}"
5355
- name: Remove Failure Label
5456
if: success()
57+
env:
58+
REPO: ${{ github.repository }}
5559
run: |
56-
gh pr edit "${HEAD}" --remove-label "${CUSTOM_PR_LABEL}"
60+
gh pr edit "${HEAD}" --repo "${REPO}" --remove-label "${CUSTOM_PR_LABEL}"

0 commit comments

Comments
 (0)