Skip to content

Commit 8fe4928

Browse files
authored
Update system-tests-pr.yaml
1 parent 0fa076f commit 8fe4928

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

.github/workflows/system-tests-pr.yaml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
runs-on: ubuntu-latest
4848
outputs:
4949
kafka_client: ${{ steps.kafkaClient.outputs.kafka_client }}
50-
fortanix: ${{ steps.fortanixKMS.outputs.fortanix }}
5150
steps:
5251
- name: 'Check out repository'
5352
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
@@ -64,27 +63,22 @@ jobs:
6463
| paste -sd ',')
6564
TEST_CLIENTS="[$(echo "$client_types" | sed 's/[^,]*/"&"/g')]"
6665
echo "test_clients=$TEST_CLIENTS" >> $GITHUB_OUTPUT
67-
- name: 'Get PR labels'
68-
env:
69-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70-
run: |
71-
PR_LABELS=[$(echo $(gh api --jq '.labels.[].name' /repos/{owner}/{repo}/pulls/${{ github.event.pull_request.number }}) | sed 's/ /,/g')]
72-
echo "LABELS=$PR_LABELS" >> "$GITHUB_ENV"
66+
# - name: 'Get PR labels'
67+
# env:
68+
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
# run: |
70+
# PR_LABELS=[$(echo $(gh api --jq '.labels.[].name' /repos/{owner}/{repo}/pulls/${{ github.event.pull_request.number }}) | sed 's/ /,/g')]
71+
# echo "LABELS=$PR_LABELS" >> "$GITHUB_ENV"
7372
- name: 'Set kafka client'
7473
id: kafkaClient
7574
env:
7675
KAFKA_CLIENTS: ${{ steps.discover.outputs.test_clients }}
76+
LABELS: ${{ github.event.pull_request.labels }}
7777
run: |
78-
KAFKA_CLIENT=$(echo "${LABELS},${KAFKA_CLIENTS}" | sed 's/,/\n/g; s/\[//g; s/\]//g; s/test\/system-test\///g' | sort | uniq -d)
78+
KAFKA_CLIENT=$(echo "${LABELS[@]},${KAFKA_CLIENTS}" | sed 's/,/\n/g; s/\[//g; s/\]//g; s/test\/system-test\///g' | sort | uniq -d)
7979
KAFKA_CLIENT=$([[ -z $KAFKA_CLIENT ]] && echo 'strimzi_test_client' || echo $KAFKA_CLIENT)
8080
echo "kafka_client=$KAFKA_CLIENT" >> "$GITHUB_OUTPUT"
8181
echo "$KAFKA_CLIENT"
82-
- name: 'Set Fortanix KMS'
83-
id: fortanixKMS
84-
run: |
85-
FORTANIX=${{ contains(github.event.pull_request.labels.*.name, 'kms/fortanix') }}
86-
echo "fortanix=$FORTANIX" >> "$GITHUB_OUTPUT"
87-
echo "$FORTANIX"
8882
8983
run_system_tests:
9084
needs: [build_images,set_variables]

0 commit comments

Comments
 (0)