Skip to content

Commit 1cc3945

Browse files
fixed bug
1 parent 14fb26e commit 1cc3945

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/syntaxCheckPullRequest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
echo ::set-output name=matrix-combinations::{\"include\":[$MATRIX_PARAMS_COMBINATIONS]}
3636
outputs:
3737
matrix-combinations: ${{ steps.setup-matrix-combinations.outputs.matrix-combinations }}
38-
checkout_ref: ${{ steps.get_branch.outputs.ref}}
39-
checkout_name: ${{ steps.get_branch.outputs.name}}
38+
checkout_ref: ${{ steps.get_checkout.outputs.ref}}
39+
checkout_name: ${{ steps.get_checkout.outputs.name}}
4040

4141
build:
4242
runs-on: ubuntu-latest
@@ -59,8 +59,8 @@ jobs:
5959
run: npm install typescript
6060
- name: npm install
6161
run: npm install
62-
- name: run buildRun.sh --user ${{ github.actor }} --branch ${{needs.setup-matrix.outputs.head_ref}} --checkSyntax
63-
run: sh buildRun.sh --user ${{ github.actor }} --branch ${{needs.setup-matrix.outputs.head_ref}} --checkSyntax -p ${{ matrix.tutorial }} -e test_console
62+
- name: run buildRun.sh --user ${{ github.actor }} --branch ${{needs.setup-matrix.outputs.checkout_ref}} --checkSyntax
63+
run: sh buildRun.sh --user ${{ github.actor }} --branch ${{needs.setup-matrix.outputs.checkout_ref}} --checkSyntax -p ${{ matrix.tutorial }} -e test_console
6464
- name: Check error file existence
6565
id: check_files
6666
uses: andstor/file-existence-action@v1

getPlaybookCheckout.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
44

55
async function getPlaybookCheckout() {
66
let pr = process.env.PR_NUMBER;
7-
let ref ="";
7+
let head = "";
88
try {
99
let get = await octokit.request('GET /repos/{owner}/{repo}/pulls/{pull_number}', {
1010
owner: 'devonfw-tutorials',
@@ -19,6 +19,7 @@ async function getPlaybookCheckout() {
1919
core.setOutput('ref', head.ref);
2020
core.info(`name : ${head.user.login}`);
2121
core.setOutput('name', head.user.login);
22+
2223
}
2324

2425
getPlaybookCheckout().catch(err => {

0 commit comments

Comments
 (0)