Skip to content

Commit ba0c49c

Browse files
committed
Fix
1 parent 278f804 commit ba0c49c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+4166
-84
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
node_modules
1+
yarn-workspace-tmp
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/** -diff linguist-generated=true
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
.yarn
12
node_modules

.github/actions/reports-group/create/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build: install package
77

88
.PHONY: package
99
package:
10-
./node_modules/.bin/ncc build --minify --source-map --license LICENSE index.js --out dist
10+
rm -Rf dist/* && ./node_modules/.bin/ncc build index.js --minify --source-map --license LICENSE --out dist
1111

1212
.PHONY: lint
1313
lint:

.github/actions/reports-group/create/dist/.gitkeep

Whitespace-only changes.

.github/actions/reports-group/create/dist/index.js

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/reports-group/create/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/reports-group/create/index.js

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import core from "@actions/core";
2-
import io from "@actions/io";
3-
import * as path from "path";
4-
import * as fs from "fs";
1+
const core = require('@actions/core'); // @TODO move to 'imports from' when moved to TS !
2+
const io = require('@actions/io'); // @TODO move to 'imports from' when moved to TS !
3+
const path = require('path'); // @TODO move to 'imports from' when moved to TS !
4+
const fs = require('fs'); // @TODO move to 'imports from' when moved to TS !
55

6-
import {path as pathSDK, glob as globSDK, CONSTANTS as SDK_CONSTANTS} from "node-sdk";
6+
const {path: pathSDK, glob: globSDK, CONSTANTS: SDK_CONSTANTS} = require('./node-sdk');
77

88
async function run() {
99
/** INPUTS **/
@@ -16,8 +16,15 @@ async function run() {
1616
const FOLLOW_SYMLINK_INPUT = core.getBooleanInput('follow-symbolic-links', {required: true});
1717

1818
/** resolve-directory **/
19-
const groupDirectory = await core.group('Resolve group directory path', async () => path.resolve(PATH_INPUT, NAME_INPUT));
20-
core.debug('group directory=' + groupDirectory);
19+
const groupDirectory = await core.group(
20+
'Resolve group directory path',
21+
async () => {
22+
const dir = path.resolve(PATH_INPUT, NAME_INPUT)
23+
core.info('group directory=' + dir);
24+
25+
return dir;
26+
}
27+
);
2128

2229
/** resolve-files **/
2330
const originalReportPaths = await core.group(
@@ -74,6 +81,7 @@ async function run() {
7481
'Create metadata file',
7582
async () => {
7683
const filepath = path.join(groupDirectory, SDK_CONSTANTS.METADATA_FILENAME);
84+
core.debug('Create metadata file at ' + filepath + ' with: ' + JSON.stringify(metadata));
7785
fs.writeFileSync(filepath, JSON.stringify(metadata));
7886
});
7987

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../node-sdk

.github/actions/reports-group/create/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
2-
"name": "create-gha",
2+
"name": "create",
33
"private": true,
44
"version": "0.0.0",
55
"author": "yoanm",
6-
"main": "index.js",
6+
"main": "dist/index.js",
77
"license": "MIT",
8+
"scripts": {
9+
"build": "make build"
10+
},
811
"dependencies": {
912
"@actions/core": "^1.10.1",
10-
"node-sdk": "0.1.0",
1113
"@actions/io": "^1.1.3"
1214
},
1315
"devDependencies": {

0 commit comments

Comments
 (0)