1
0
mirror of synced 2025-12-23 03:44:00 -05:00

fix incorrect code languages

This commit is contained in:
Rachael Sewell
2023-09-25 11:43:19 -07:00
parent ce11747ab0
commit 2f405bbe6a
2 changed files with 17 additions and 17 deletions

View File

@@ -38,7 +38,7 @@ echo "::workflow-command parameter1={data},parameter2={data}::{command value}"
{% powershell %} {% powershell %}
```pwsh copy ```powershell copy
Write-Output "::workflow-command parameter1={data},parameter2={data}::{command value}" Write-Output "::workflow-command parameter1={data},parameter2={data}::{command value}"
``` ```
@@ -179,7 +179,7 @@ echo "::set-output name=action_fruit::strawberry"
{% powershell %} {% powershell %}
```pwsh copy ```powershell copy
Write-Output "::set-output name=action_fruit::strawberry" Write-Output "::set-output name=action_fruit::strawberry"
``` ```
@@ -206,7 +206,7 @@ echo "::debug::Set the Octocat variable"
{% powershell %} {% powershell %}
```pwsh copy ```powershell copy
Write-Output "::debug::Set the Octocat variable" Write-Output "::debug::Set the Octocat variable"
``` ```
@@ -234,7 +234,7 @@ echo "::notice file=app.js,line=1,col=5,endColumn=7::Missing semicolon"
{% powershell %} {% powershell %}
```pwsh copy ```powershell copy
Write-Output "::notice file=app.js,line=1,col=5,endColumn=7::Missing semicolon" Write-Output "::notice file=app.js,line=1,col=5,endColumn=7::Missing semicolon"
``` ```
@@ -262,7 +262,7 @@ echo "::warning file=app.js,line=1,col=5,endColumn=7::Missing semicolon"
{% powershell %} {% powershell %}
```pwsh copy ```powershell copy
Write-Output "::warning file=app.js,line=1,col=5,endColumn=7::Missing semicolon" Write-Output "::warning file=app.js,line=1,col=5,endColumn=7::Missing semicolon"
``` ```
@@ -290,7 +290,7 @@ echo "::error file=app.js,line=1,col=5,endColumn=7::Missing semicolon"
{% powershell %} {% powershell %}
```pwsh copy ```powershell copy
Write-Output "::error file=app.js,line=1,col=5,endColumn=7::Missing semicolon" Write-Output "::error file=app.js,line=1,col=5,endColumn=7::Missing semicolon"
``` ```
@@ -363,7 +363,7 @@ echo "::add-mask::Mona The Octocat"
{% powershell %} {% powershell %}
```pwsh copy ```powershell copy
Write-Output "::add-mask::Mona The Octocat" Write-Output "::add-mask::Mona The Octocat"
``` ```
@@ -783,7 +783,7 @@ echo "{environment_variable_name}={value}" >> "$GITHUB_ENV"
- Using PowerShell version 6 and higher: - Using PowerShell version 6 and higher:
```pwsh copy ```powershell copy
"{environment_variable_name}={value}" | Out-File -FilePath $env:GITHUB_ENV -Append "{environment_variable_name}={value}" | Out-File -FilePath $env:GITHUB_ENV -Append
``` ```
@@ -901,7 +901,7 @@ echo "{name}={value}" >> "$GITHUB_OUTPUT"
{% powershell %} {% powershell %}
```pwsh copy ```powershell copy
"{name}=value" | Out-File -FilePath $env:GITHUB_OUTPUT -Append "{name}=value" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
``` ```
@@ -957,7 +957,7 @@ echo "{markdown content}" >> $GITHUB_STEP_SUMMARY
{% powershell %} {% powershell %}
```pwsh copy ```powershell copy
"{markdown content}" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append "{markdown content}" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
``` ```
@@ -981,7 +981,7 @@ echo "### Hello world! :rocket:" >> $GITHUB_STEP_SUMMARY
{% powershell %} {% powershell %}
```pwsh copy ```powershell copy
"### Hello world! :rocket:" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append "### Hello world! :rocket:" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
``` ```
@@ -1101,7 +1101,7 @@ echo "{path}" >> $GITHUB_PATH
{% powershell %} {% powershell %}
```pwsh copy ```powershell copy
"{path}" | Out-File -FilePath $env:GITHUB_PATH -Append "{path}" | Out-File -FilePath $env:GITHUB_PATH -Append
``` ```
@@ -1123,7 +1123,7 @@ echo "$HOME/.local/bin" >> $GITHUB_PATH
This example demonstrates how to add the user `$env:HOMEPATH/.local/bin` directory to `PATH`: This example demonstrates how to add the user `$env:HOMEPATH/.local/bin` directory to `PATH`:
```pwsh copy ```powershell copy
"$env:HOMEPATH/.local/bin" | Out-File -FilePath $env:GITHUB_PATH -Append "$env:HOMEPATH/.local/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
``` ```

View File

@@ -69,7 +69,7 @@ which is exactly what we've done here.
Next, in _views/index.erb_, paste this content: Next, in _views/index.erb_, paste this content:
``` erb ```html
<html> <html>
<head> <head>
</head> </head>
@@ -198,7 +198,7 @@ erb :basic, :locals => auth_result
We can do whatever we want with our results. In this case, we'll just dump them straight into _basic.erb_: We can do whatever we want with our results. In this case, we'll just dump them straight into _basic.erb_:
``` erb ```html
<p>Hello, <%= login %>!</p> <p>Hello, <%= login %>!</p>
<p> <p>
<% if !email.nil? && !email.empty? %> It looks like your public email address is <%= email %>. <% if !email.nil? && !email.empty? %> It looks like your public email address is <%= email %>.
@@ -327,7 +327,7 @@ OAuth flow and updates the session with the granted token and scopes.
Next, create a file in _views_ called _advanced.erb_, and paste this markup into it: Next, create a file in _views_ called _advanced.erb_, and paste this markup into it:
``` erb ```html
<html> <html>
<head> <head>
</head> </head>