-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update set-env and add-path to use Environment Files (#8)
* fix: Update set-env and add-path to use Env Files Actions runners will mark as warning using these old commands, instead these should write to special env files per https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ fixes #6 * docs: Add Send-ActionFileCommand docs * docs: Update changelog * refactor: Add test script, change CI invocation * ci: fix testing no commands block * refactor: All tests using files use TestDrive
- Loading branch information
Showing
7 changed files
with
354 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Send-ActionFileCommand | ||
``` | ||
NAME | ||
Send-ActionFileCommand | ||
SYNOPSIS | ||
Sends a command to an Action Environment File. | ||
Equivalent to `core.issueFileCommand(cmd, msg)`. | ||
SYNTAX | ||
Send-ActionFileCommand [-Command] <String> [-Message] <PSObject> [<CommonParameters>] | ||
DESCRIPTION | ||
Appends given message to an Action Environment File. | ||
PARAMETERS | ||
-Command <String> | ||
Command (environment file variable suffix) to send message for. | ||
Required? true | ||
Position? 1 | ||
Default value | ||
Accept pipeline input? false | ||
Accept wildcard characters? false | ||
-Message <PSObject> | ||
Message to append. | ||
Required? true | ||
Position? 2 | ||
Default value | ||
Accept pipeline input? true (ByValue) | ||
Accept wildcard characters? false | ||
<CommonParameters> | ||
This cmdlet supports the common parameters: Verbose, Debug, | ||
ErrorAction, ErrorVariable, WarningAction, WarningVariable, | ||
OutBuffer, PipelineVariable, and OutVariable. For more information, see | ||
about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216). | ||
INPUTS | ||
OUTPUTS | ||
-------------------------- EXAMPLE 1 -------------------------- | ||
PS>Send-ActionFileCommand ENV 'myvar=value' | ||
-------------------------- EXAMPLE 2 -------------------------- | ||
PS>'myvar=value', 'myvar2=novalue' | Send-ActionFileCommand ENV | ||
RELATED LINKS | ||
https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#environment-files | ||
``` | ||
|
Oops, something went wrong.