1
0
mirror of synced 2025-12-21 10:57:10 -05:00

Double quote to prevent globbing issues (#22795)

Co-authored-by: Sarah Edwards <skedwards88@github.com>
Co-authored-by: Courtney Wilson <77312589+cmwilson21@users.noreply.github.com>
This commit is contained in:
Arild Shirazi
2023-04-21 13:49:13 -05:00
committed by GitHub
parent 809ce2b853
commit 8dfbace406

View File

@@ -767,7 +767,7 @@ jobs:
{% bash %}
```bash{:copy}
echo "{environment_variable_name}={value}" >> $GITHUB_ENV
echo "{environment_variable_name}={value}" >> "$GITHUB_ENV"
```
{% endbash %}
@@ -799,7 +799,7 @@ steps:
- name: Set the value
id: step_one
run: |
echo "action_state=yellow" >> $GITHUB_ENV
echo "action_state=yellow" >> "$GITHUB_ENV"
- name: Use the value
id: step_two
run: |
@@ -856,9 +856,9 @@ steps:
id: step_one
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "JSON_RESPONSE<<$EOF" >> $GITHUB_ENV
curl https://example.com >> $GITHUB_ENV
echo "$EOF" >> $GITHUB_ENV
echo "JSON_RESPONSE<<$EOF" >> "$GITHUB_ENV"
curl https://example.com >> "$GITHUB_ENV"
echo "$EOF" >> "$GITHUB_ENV"
```
{% endbash %}
@@ -887,7 +887,7 @@ Sets a step's output parameter. Note that the step will need an `id` to be defin
{% bash %}
```bash{:copy}
echo "{name}={value}" >> $GITHUB_OUTPUT
echo "{name}={value}" >> "$GITHUB_OUTPUT"
```
{% endbash %}
@@ -908,7 +908,7 @@ This example demonstrates how to set the `SELECTED_COLOR` output parameter and l
```yaml{:copy}
- name: Set color
id: random-color-generator
run: echo "SELECTED_COLOR=green" >> $GITHUB_OUTPUT
run: echo "SELECTED_COLOR=green" >> "$GITHUB_OUTPUT"
- name: Get color
{% raw %}
run: echo "The selected color is ${{ steps.random-color-generator.outputs.SELECTED_COLOR }}"