regression labeler fix (#123)

This commit is contained in:
Steve Kim
2026-07-30 14:17:19 -07:00
committed by GitHub
parent 10cd5e838e
commit 26c3a6e246
3 changed files with 9 additions and 7 deletions
@@ -12,8 +12,7 @@ jobs:
- name: Fetch template body
id: check_regression
uses: actions/github-script@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
env:
TEMPLATE_BODY: ${{ github.event.issue.body }}
with:
script: |
@@ -24,9 +23,12 @@ jobs:
- name: Manage regression label
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IS_REGRESSION: ${{ steps.check_regression.outputs.is_regression }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
REPO: ${{ github.repository }}
run: |
if [ "${{ steps.check_regression.outputs.is_regression }}" == "true" ]; then
gh issue edit ${{ github.event.issue.number }} --add-label "potential-regression" -R ${{ github.repository }}
if [ "$IS_REGRESSION" == "true" ]; then
gh issue edit "$ISSUE_NUMBER" --add-label "potential-regression" -R "$REPO"
else
gh issue edit ${{ github.event.issue.number }} --remove-label "potential-regression" -R ${{ github.repository }}
gh issue edit "$ISSUE_NUMBER" --remove-label "potential-regression" -R "$REPO"
fi