Skip to content

Commit

Permalink
chore: template network name
Browse files Browse the repository at this point in the history
  • Loading branch information
3benbox committed Jun 19, 2024
1 parent 978b376 commit 889d86a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/run-performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install jq
run: sudo apt-get install jq
- name: Install yq
run: sudo apt-get install yq
- name: Template network
run: |
set -exo pipefail
Expand All @@ -48,5 +48,6 @@ jobs:
export THIS_TEST=${{ inputs.test_name }}-${{ github.run_id }}
mkdir -p performance/$THIS_TEST
# set the network name yaml key to the test names
jq '.spec.metadata.name = env(THIS_TEST)' performance/$TEST_NAME/network.yaml > performance/$THIS_TEST/network.yaml
yq e '.metadata.name = env(THIS_TEST)' performance/$TEST_NAME/network.yaml \
> performance/$THIS_TEST/network.yaml
cat performance/$THIS_TEST/network.yaml

0 comments on commit 889d86a

Please sign in to comment.