Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu committed Jun 8, 2021
1 parent c9d0b81 commit b432703
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
11 changes: 10 additions & 1 deletion dist/index.js
Expand Up @@ -4660,6 +4660,14 @@ module.exports.Singular = Hook.Singular
module.exports.Collection = Hook.Collection


/***/ }),

/***/ 532:
/***/ (function(module) {

module.exports = eval("require")("version");


/***/ }),

/***/ 539:
Expand Down Expand Up @@ -7176,6 +7184,7 @@ exports.checkBypass = checkBypass;
exports.__esModule = true;
var core = __webpack_require__(470);
var github = __webpack_require__(469);
var VERSION = __webpack_require__(532);
var context = github.context;
var isTrue = function (variable) {
var lowercase = variable.toLowerCase();
Expand Down Expand Up @@ -7220,7 +7229,7 @@ var buildExec = function () {
var filepath = workingDir ?
workingDir + '/codecov.sh' : 'codecov.sh';
var execArgs = [filepath];
execArgs.push('-n', "" + name, '-F', "" + flags, '-Q', 'github-action-1.5.1');
execArgs.push('-n', "" + name, '-F', "" + flags, '-Q', "github-action-" + VERSION);
var options = {};
options.env = Object.assign(process.env, {
GITHUB_ACTION: process.env.GITHUB_ACTION,
Expand Down
7 changes: 5 additions & 2 deletions src/buildExec.test.ts
@@ -1,5 +1,8 @@
import buildExec from './buildExec';
const github = require('@actions/github');

const VERSION = require('version');

const context = github.context;

test('no arguments', () => {
Expand All @@ -12,7 +15,7 @@ test('no arguments', () => {
'-F',
'',
'-Q',
'github-action',
`github-action-${VERSION}`,
];
if (context.eventName == 'pull_request') {
args.push('-C', `${context.payload.pull_request.head.sha}`);
Expand Down Expand Up @@ -70,7 +73,7 @@ test('all arguments', () => {
'-F',
'test',
'-Q',
'github-action',
`github-action-${VERSION}`,
'-c',
'-N',
'83231650328f11695dfb754ca0f540516f188d27',
Expand Down
11 changes: 10 additions & 1 deletion src/buildExec.ts
@@ -1,6 +1,8 @@
const core = require('@actions/core');
const github = require('@actions/github');

const VERSION = require('version');

const context = github.context;

const isTrue = (variable) => {
Expand Down Expand Up @@ -51,7 +53,14 @@ const buildExec = () => {
workingDir + '/codecov.sh' : 'codecov.sh';

const execArgs = [filepath];
execArgs.push( '-n', `${name}`, '-F', `${flags}`, '-Q', 'github-action-1.5.1' );
execArgs.push(
'-n',
`${name}`,
'-F',
`${flags}`,
'-Q',
`github-action-${VERSION}`,
);

const options:any = {};
options.env = Object.assign(process.env, {
Expand Down
3 changes: 3 additions & 0 deletions src/version.ts
@@ -0,0 +1,3 @@
const VERSION = 'v1.5.0';

export default VERSION;

0 comments on commit b432703

Please sign in to comment.