Compare commits

..

1 Commits

Author SHA1 Message Date
Ferenc Hammerl 091f7aedde Use most recent setup-node 2023-01-03 16:38:50 +01:00
11 changed files with 14 additions and 23 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@v2
- name: Set Node.js 12.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12.x
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@v2
- name: Set Node.js 12.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12.x
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@v2
- name: Set Node.js 12.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12.x
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
run: ls packages/${{ github.event.inputs.package }}
- name: Set Node.js 12.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12.x
+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v2
- name: Set Node.js 12.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12.x
+1 -1
View File
@@ -221,7 +221,7 @@ console.log(`We can even get context data, like the repo: ${context.repo.repo}`)
## Contributing
We welcome contributions. See [how to contribute](.github/CONTRIBUTING.md).
hi
## Code of Conduct
See [our code of conduct](CODE_OF_CONDUCT.md).
+1 -1
View File
@@ -32,7 +32,7 @@ jobs:
os: [ubuntu-16.04, windows-2019]
runs-on: ${{matrix.os}}
actions:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
version: ${{matrix.node}}
- run: |
+1 -1
View File
@@ -18,7 +18,7 @@ e.g. To use https://github.com/actions/setup-node, users will author:
```yaml
steps:
using: actions/setup-node@v1
using: actions/setup-node@v3
```
# Define Metadata
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "@actions/io",
"version": "1.1.3",
"version": "1.1.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@actions/io",
"version": "1.1.3",
"version": "1.1.2",
"license": "MIT"
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@actions/io",
"version": "1.1.3",
"version": "1.1.2",
"description": "Actions io lib",
"keywords": [
"github",
+3 -12
View File
@@ -4,8 +4,7 @@ import * as path from 'path'
import {promisify} from 'util'
import * as ioUtil from './io-util'
// const exec = promisify(childProcess.exec)
// const fork = promisify(childProcess.fork)
const exec = promisify(childProcess.exec)
const execFile = promisify(childProcess.execFile)
/**
@@ -130,20 +129,12 @@ export async function rmRF(inputPath: string): Promise<void> {
try {
const cmdPath = ioUtil.getCmdPath()
if (await ioUtil.isDirectory(inputPath, true)) {
await execFile(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, {
await exec(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, {
env: {inputPath}
}).catch(err => {
// if you try to delete a file that doesn't exist, desired result is achieved
// other errors are valid
if (err.code !== 'ENOENT') throw err
})
} else {
await execFile(`${cmdPath} /s /c "del /f /a "%inputPath%""`, {
await exec(`${cmdPath} /s /c "del /f /a "%inputPath%""`, {
env: {inputPath}
}).catch(err => {
// if you try to delete a file that doesn't exist, desired result is achieved
// other errors are valid
if (err.code !== 'ENOENT') throw err
})
}
} catch (err) {