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