mirror of
https://github.com/deployphp/action.git
synced 2025-06-29 12:44:14 +00:00
Update action to use zx
This commit is contained in:
parent
d12c16f961
commit
ba36add8b1
115 changed files with 1612 additions and 7143 deletions
25
node_modules/@actions/core/README.md
generated
vendored
25
node_modules/@actions/core/README.md
generated
vendored
|
@ -309,4 +309,27 @@ outputs:
|
|||
runs:
|
||||
using: 'node12'
|
||||
main: 'dist/index.js'
|
||||
```
|
||||
```
|
||||
|
||||
#### Filesystem path helpers
|
||||
|
||||
You can use these methods to manipulate file paths across operating systems.
|
||||
|
||||
The `toPosixPath` function converts input paths to Posix-style (Linux) paths.
|
||||
The `toWin32Path` function converts input paths to Windows-style paths. These
|
||||
functions work independently of the underlying runner operating system.
|
||||
|
||||
```js
|
||||
toPosixPath('\\foo\\bar') // => /foo/bar
|
||||
toWin32Path('/foo/bar') // => \foo\bar
|
||||
```
|
||||
|
||||
The `toPlatformPath` function converts input paths to the expected value on the runner's operating system.
|
||||
|
||||
```js
|
||||
// On a Windows runner.
|
||||
toPlatformPath('/foo/bar') // => \foo\bar
|
||||
|
||||
// On a Linux runner.
|
||||
toPlatformPath('\\foo\\bar') // => /foo/bar
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue