Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit d73e75d

Browse files
committed
Separate integration workflow
1 parent 7afad1e commit d73e75d

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,7 @@ on:
33
pull_request: {branches: master}
44

55
jobs:
6-
integration:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- name: output-set
10-
uses: actions/github-script@master
11-
with:
12-
script: |
13-
core.setOutput('result', 'test')
14-
- run: |
15-
if [[ "${{steps.output-set.outputs.result}}" != "test" ]]; then
16-
exit 1
17-
fi
18-
19-
jest:
6+
ci:
207
runs-on: ubuntu-latest
218
steps:
229
- uses: actions/checkout@v2

.github/workflows/integration.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push: {branches: integration-workflow}
3+
4+
jobs:
5+
integration:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- id: output-set
9+
uses: actions/github-script@integration-workflow
10+
with:
11+
script: return 'test'
12+
result-encoding: string
13+
- run: |
14+
if [[ "${{steps.output-set.outputs.result}}" != "test" ]]; then
15+
exit 1
16+
fi

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9178,7 +9178,7 @@ async function main() {
91789178
const github = new lib_github.GitHub(token, opts);
91799179
const script = Object(core.getInput)('script', { required: true });
91809180
// Using property/value shorthand on `require` (e.g. `{require}`) causes compilatin errors.
9181-
const result = callAsyncFunction({ require: __webpack_require__(875), github: github, context: lib_github.context, core: core }, script);
9181+
const result = await callAsyncFunction({ require: __webpack_require__(875), github: github, context: lib_github.context, core: core }, script);
91829182
let encoding = Object(core.getInput)('result-encoding');
91839183
encoding = encoding ? encoding : 'json';
91849184
let output;

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function main() {
1818
const script = core.getInput('script', {required: true})
1919

2020
// Using property/value shorthand on `require` (e.g. `{require}`) causes compilatin errors.
21-
const result = callAsyncFunction(
21+
const result = await callAsyncFunction(
2222
{require: require, github: github, context: context, core: core},
2323
script
2424
)

0 commit comments

Comments
 (0)