mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-15 06:00:48 +00:00
use gh pr view
This commit is contained in:
parent
102af286be
commit
c3fd90d7bc
1 changed files with 4 additions and 2 deletions
|
@ -49,10 +49,12 @@ jobs:
|
|||
echo "test-types=$TEST_TYPES" >> $GITHUB_OUTPUT
|
||||
|
||||
modes_array=()
|
||||
if [[ ${{ github.event.pull_request.labels.*.name }} == *"re-record-vision-tests"* ]]; then
|
||||
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
|
||||
echo "labels=$labels"
|
||||
if [[ $labels == *"re-record-vision-tests"* ]]; then
|
||||
modes_array+=("vision")
|
||||
fi
|
||||
if [[ ${{ github.event.pull_request.labels.*.name }} == *"re-record-tests"* ]]; then
|
||||
if [[ $labels == *"re-record-tests"* ]]; then
|
||||
modes_array+=("non-vision")
|
||||
fi
|
||||
matrix_modes=$(jq -n -c '$ARGS.positional' --jsonargs -- "${modes_array[@]}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue