Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
ribalba committed Aug 6, 2024
1 parent 441328f commit a7f0a1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ jobs:
- name: Sleep 3
run: sleep 3

- name: Test measurement 4
uses: ./
with:
task: get-measurement
label: without quotes'; echo
# There is currently no way of catching this IMHO
# - name: Test measurement 4
# uses: ./
# with:
# task: get-measurement
# label: without quotes'; echo

- name: Sleep 3
run: sleep 3
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ runs:
shell: bash
run: |
label: ${{ (contains(inputs.label, '"') || contains(inputs.label, "\'")) && 'No quotes allowed in labels' || inputs.label }}
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"
Expand Down

0 comments on commit a7f0a1a

Please sign in to comment.