Skip to content

Commit

Permalink
Merge pull request #22 from manabie-com/feature/custom-only-build-tar…
Browse files Browse the repository at this point in the history
…get-branch-and-show-more-info

update white list input params
  • Loading branch information
phungtruongnguyen94 authored Feb 9, 2022
2 parents e1cff97 + ed57c61 commit 775d501
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,22 @@ inputs:
minimum-change-threshold:
description: 'Consider files with changes below this threshold as unchanged. Specified in bytes.'
default: 1
build-folder:
description: 'remove build folder of current build branch'
pattern:
description: 'minimatch pattern of files to track'
default: '**/dist/**/*.js'
exclude:
description: 'minimatch pattern of files NOT to track'
default: '{**/*.map,**/node_modules/**}'
target-build-folder:
description: 'remove build folder of current build branch'
target-pattern:
description: 'minimatch pattern of files to track'
default: '**/dist/**/*.js'
target-exclude:
description: 'minimatch pattern of files NOT to track'
default: '{**/*.map,**/node_modules/**}'
cwd:
description: 'A custom working directory to execute the action in relative to repo root (defaults to .)'
runs:
Expand Down
2 changes: 1 addition & 1 deletion index.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import path from 'path';
import fs from 'fs';
import { getInput, setFailed, startGroup, endGroup, debug } from '@actions/core';
import { context, getOctokit } from '@actions/github';
import { exec } from '@actions/exec';
Expand All @@ -13,7 +12,7 @@ import { fileExists, diffTable, toBool, stripHash } from './utils.js';
* @param {ActionContext} context
* @param {string} token
*/
async function run(octokit, context, token, privateConfig) {
async function run(octokit, context, token) {
const { owner, repo, number: pull_number } = context.issue;

// const pr = (await octokit.pulls.get({ owner, repo, pull_number })).data;
Expand Down

0 comments on commit 775d501

Please sign in to comment.