From 4129c487738cddfe475831c5ef4a3c45f369ce7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= Date: Tue, 30 Apr 2024 14:40:08 +0200 Subject: [PATCH] Remove usage of external action to URI encode component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- .github/actions/notify_e2e_failure/action.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/actions/notify_e2e_failure/action.yml b/.github/actions/notify_e2e_failure/action.yml index b6c86f113..56463a23f 100644 --- a/.github/actions/notify_e2e_failure/action.yml +++ b/.github/actions/notify_e2e_failure/action.yml @@ -36,12 +36,6 @@ runs: shell: bash run: echo "CURRENT_DATE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV - - name: Encode URI component - uses: Ablestor/encode-uri-component-action@790ea01bcf2d5ca4d0dbe8c15351a87b47f22f61 # v1.3 - id: encode-uri-component - with: - string: ${{ inputs.test }} - - name: Create body template id: body-template shell: bash @@ -69,13 +63,15 @@ runs: fi } + e2eTestPayload=$(echo "${{ inputs.test }}" | jq -R -r @uri) + q=$(echo "(filters:!( $(queryGen cloud.provider "${{ inputs.provider }}") $(queryGen metadata.github.ref-stream "${{ inputs.refStream }}") $(queryGen metadata.github.kubernetes-version "${{ inputs.kubernetesVersion }}") $(queryGen metadata.github.attestation-variant "${{ inputs.attestationVariant }}") $(queryGen metadata.github.cluster-creation "${{ inputs.clusterCreation }}") - $(queryGen metadata.github.e2e-test-payload "${{ steps.encode-uri-component.outputs.string }}") + $(queryGen metadata.github.e2e-test-payload "${e2eTestPayload}") (query:(match_phrase:(metadata.github.run-id:${{ github.run_id }}))) ))" | tr -d "\t\n ")