Skip to content

Commit

Permalink
fix: remove debugging and finalize changes
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Dec 10, 2020
1 parent 421866b commit cab36b6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 27 deletions.
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,10 @@ WORKDIR /app
COPY package*.json ./
RUN npm install --production

# Create binstubs and add them to the path
# RUN bundle binstubs --all --path /app/bin && bundle platform && bundle list
# ENV PATH="/app/bin:${PATH}"

# move the rest of the project over
COPY dist dist

# Test licensee
RUN bundle config path /app/vendor/bundle
# Configure bundler
ENV BUNDLE_GEMFILE=/app/Gemfile
ENV BUNDLE_PATH=/app/vendor/bundle

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

19 changes: 0 additions & 19 deletions src/entry.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
import * as core from '@actions/core'
import {spawnSync} from 'child_process'
import run from './main'


/**
* @fileoverview This file serves as the "entry"
* you can check out main.ts for the actual
* "main" function.
*/

function debugCmd(cmd: string): void {
const [cmd_val, ...args] = cmd.split(' ')
const output = spawnSync(cmd_val, args)
core.debug(`${cmd}: ${output.error || ''}`)
core.debug(JSON.stringify(output.stdout?.toString?.()))
core.debug(JSON.stringify(output.stderr?.toString?.()))
}

// debugging
core.debug(JSON.stringify(process.env))
debugCmd('licensee version')
debugCmd('github-linguist --help')
debugCmd('ls -lah /usr/local/lib/ruby/gems/2.6.0/bin')
debugCmd('bundle platform')
debugCmd('bundle list')

run()

0 comments on commit cab36b6

Please sign in to comment.