Skip to content

Commit 3f462c2

Browse files
committed
fix(workflow): condition for status update script
This corrects a logical error causing improper job execution when unnecessary.
1 parent 062632f commit 3f462c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/change-status-on-labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
fi
5353
- name: Set new status
5454
id: status
55-
if: ${{ steps.labeled.outputs.status != 'skip' || steps.unlabeled.outputs.status != 'skip' }}
55+
if: ${{ steps.labeled.outputs.status && steps.labeled.outputs.status != 'skip' || steps.unlabeled.outputs.status && steps.unlabeled.outputs.status != 'skip' }}
5656
run: |
5757
scripts/update_issue_status.sh --owner "$OWNER" --repo "$REPO" --issue-number "$ISSUE_NUMBER" --new-status "$NEW_STATUS"
5858
env:

0 commit comments

Comments
 (0)