Skip to content

Commit 28a5b54

Browse files
committed
add logic for manual run
1 parent c06e69c commit 28a5b54

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/check-sdk-tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,16 @@ jobs:
6262
- name: Check out repository
6363
uses: actions/checkout@v4
6464

65-
- name: Get labels from PR
65+
- name: Skip label check for manual runs
6666
id: get-labels
67+
if: ${{ github.event_name == 'workflow_dispatch' }}
68+
run: |
69+
echo "Manual workflow dispatch detected, skipping PR label check."
70+
echo "run-sdk-tests=true" >> $GITHUB_OUTPUT
71+
72+
- name: Get labels from PR
73+
id: get-labels-pr
74+
if: ${{ github.event_name == 'pull_request' }}
6775
run: |
6876
sleep 5
6977
LABELS=$(gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels --jq '.[].name')

0 commit comments

Comments
 (0)