mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
fix: add-matcher fails github workflow (#1532)
* fix: add-matcher fails github workflow * make linter happy
This commit is contained in:
parent
79833c689f
commit
7e25783091
2 changed files with 35 additions and 29 deletions
|
@ -9,23 +9,22 @@ inputs:
|
|||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
# The output of actions/setup-node@v2 seems to fail the workflow
|
||||
# - uses: actions/setup-node@v2
|
||||
# with:
|
||||
# node-version: '16'
|
||||
# - run: |
|
||||
# console.log(process.version);
|
||||
# console.log("Hi from node");
|
||||
# console.log("${{ inputs.test_input_optional }}");
|
||||
# if("${{ inputs.test_input_optional }}" !== "Test") {
|
||||
# console.log("Invalid input test_input_optional expected \"Test\" as value");
|
||||
# process.exit(1);
|
||||
# }
|
||||
# if(!process.version.startsWith('v16')) {
|
||||
# console.log("Expected node v16, but got " + process.version);
|
||||
# process.exit(1);
|
||||
# }
|
||||
# shell: node {0}
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
- run: |
|
||||
console.log(process.version);
|
||||
console.log("Hi from node");
|
||||
console.log("${{ inputs.test_input_optional }}");
|
||||
if("${{ inputs.test_input_optional }}" !== "Test") {
|
||||
console.log("Invalid input test_input_optional expected \"Test\" as value");
|
||||
process.exit(1);
|
||||
}
|
||||
if(!process.version.startsWith('v16')) {
|
||||
console.log("Expected node v16, but got " + process.version);
|
||||
process.exit(1);
|
||||
}
|
||||
shell: node {0}
|
||||
- uses: ./uses-composite/composite_action
|
||||
id: composite
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue