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

Fix for blank lines around code fences (#38255)

This commit is contained in:
Grace Park
2023-06-26 10:21:48 -07:00
committed by GitHub
parent a4913b5935
commit a8a6e4554a
272 changed files with 1552 additions and 2 deletions

View File

@@ -256,6 +256,7 @@ Creates a warning message and prints the message to the log. {% data reusables.a
```bash copy
echo "::warning file=app.js,line=1,col=5,endColumn=7::Missing semicolon"
```
{% endbash %}
{% powershell %}
@@ -524,6 +525,7 @@ jobs:
echo "::add-mask::$RETRIEVED_SECRET"
echo "We retrieved our masked secret: $RETRIEVED_SECRET"
```
{% endbash %}
{% powershell %}
@@ -563,6 +565,7 @@ jobs:
echo "::add-mask::$Retrieved_Secret"
echo "We retrieved our masked secret: $Retrieved_Secret"
```
{% endpowershell %}
## Stopping and starting workflow commands
@@ -603,6 +606,7 @@ jobs:
echo "::$stopMarker::"
echo '::warning:: This is a warning again, because stop-commands has been turned off.'
```
{% endbash %}
{% powershell %}
@@ -715,6 +719,7 @@ This example uses JavaScript to run the `save-state` command. The resulting envi
```javascript copy
console.log('::save-state name=processID::12345')
```
{% endif %}
The `STATE_processID` variable is then exclusively available to the cleanup script running under the `main` action. This example runs in `main` and uses JavaScript to display the value assigned to the `STATE_processID` environment variable:
@@ -888,6 +893,7 @@ Sets a step's output parameter. Note that the step will need an `id` to be defin
```bash copy
echo "{name}={value}" >> "$GITHUB_OUTPUT"
```
{% endbash %}
{% powershell %}
@@ -1087,6 +1093,7 @@ Prepends a directory to the system `PATH` variable and automatically makes it av
```bash copy
echo "{path}" >> $GITHUB_PATH
```
{% endbash %}
{% powershell %}