Open amis92 opened 4 years ago
result
output:
2
error
output:
/demo
1 + 1 Workflow run
result
output:
2
error
output:
/demo
$github.repository $github.repository = "changed" $github.repository Workflow run
result
output:
[
"Amadevus/pwsh-script",
"changed"
]
error
output:
/demo
echo $github.actor Workflow run
result
output:
amis92
error
output:
/demo
echo $github.workspace Workflow run
result
output:
/home/runner/work/pwsh-script/pwsh-script
error
output:
result
output:
"2021-07-13T05:36:32.3956555+00:00"
error
output:
/demo
Set-ActionOutput testout igottest Workflow run
result
output:
error
output:
result
output:
2
error
output:
/demo Write-Output 'Hi' Workflow run
result
output:
Hi
error
output:
result
output:
error
output:
/demo Workflow run
result
output:
error
output:
result
output:
error
output:
The term 'Set-Culture' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
result
output:
error
output:
The term 'Set-Culture' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
result
output:
2
error
output:
result
output:
error
output:
result
output:
21
error
output:
result
output:
error
output:
At line:3 char:17
+ return ("test: ${github.run_number")"
+ ~~~~~~~~~~~~~~~~~~~~~
${{variable}} reference starting is missing the closing '}}'.
At line:3 char:9
+ return ("test: ${github.run_number")"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The string is missing the terminator: ".
At line:3 char:38
+ return ("test: ${github.run_number")"
+ ~
Missing closing ')' in expression.
result
output:
test:
error
output:
result
output:
test:
error
output:
result
output:
test:
error
output:
@SupremeOverlordTheFirst you need to use normal parentheses/round brackets: $()
, such as:
/demo
"test: $($github.workspace)" Workflow run
result
output:
test: /home/runner/work/pwsh-script/pwsh-script
error
output:
@SupremeOverlordTheFirst you need to use normal parentheses/round brackets:
$()
, such as:
Thank you, yes got it working, sorry for spamming the comments :)
result
output:
{
"x": "a1",
"y": "b2"
}
error
output:
/demo
Get-ExecutionPolicy
Workflow run
result
output:
error
output:
The term 'Get-ExecutionPolicy
' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
/demo Workflow run
result
output:
error
output:
/demo get-date Workflow run
There's a slash-command available to try out the action. Simply comment on this issue with
/demo
in the first line and a PowerShell script in the following lines. If your comment will contain a code-block (fenced or not), contents of it will be executed instead of whole comment body - and it'll look better! :)For example, comment with:
You should get a result (and/or an error) in a comment that will follow.