From 7e5cd88e0c7e1580bf5aa4ead3686aee8202afcb Mon Sep 17 00:00:00 2001 From: Didi Hoffmann Date: Tue, 6 Aug 2024 12:54:16 +0200 Subject: [PATCH] asd --- .github/workflows/test.yml | 12 ++++++------ action.yml | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 78f14ca9..26e3278f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: strategy: fail-fast: true matrix: - #os: [ubuntu-22.04, ubuntu-24.04, ubuntu-20.04] +# os: [ubuntu-22.04, ubuntu-24.04, ubuntu-20.04] os: [ubuntu-22.04] steps: @@ -93,11 +93,11 @@ jobs: run: sleep 3 # There is currently no way of catching this IMHO - # - name: Test measurement 4 - # uses: ./ - # with: - # task: get-measurement - # label: without quotes'; echo + - name: Test measurement 4 + uses: ./ + with: + task: get-measurement + label: without quotes'; echo - name: Sleep 3 run: sleep 3 diff --git a/action.yml b/action.yml index c967bdb4..f6b76a76 100644 --- a/action.yml +++ b/action.yml @@ -99,8 +99,7 @@ runs: NAME: ${{ github.workflow }} shell: bash run: | - - label: ${{ contains(inputs.label, '"') && 'No quotes allowed in labels' || inputs.label }} + label=${{ (contains(inputs.label, '"') || contains(inputs.label, '\'')) && 'No quotes allowed in labels' || inputs.label }} label_cleaned=$(echo "$label" | tr -d "$&;\'") echo "Cleaned label: $label_cleaned" "${{ github.action_path }}/scripts/make_measurement.sh" make_measurement "$label_cleaned"