Skip to content

Commit

Permalink
Revert "Allow the user to pass a folder name in which the private act…
Browse files Browse the repository at this point in the history
…ion will be cloned"
  • Loading branch information
bagbyte authored May 12, 2020
1 parent bd7b033 commit afff74c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ inputs:
private-action-token:
description: 'Token to access the private repository'
required: true
private-action-folder:
description: 'Folder in which to clone the private action'
required: false
runs:
using: 'node12'
main: 'dist/main.js'
5 changes: 1 addition & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ async function checkoutCode() {
// Read `private-action-token` input parmeter
const token = core.getInput('private-action-token');

// Read `private-action-folder` input parameter
const folder = core.getInput('private-action-folder');

// If `private-action` input prameter is missing, return an error
if (!action) {
core.setFailed(`Missing 'private-action' input parameter`);
Expand Down Expand Up @@ -161,7 +158,7 @@ async function checkoutCode() {
}

// Create a random folder name where to checkout the action
const tempFolderName = folder || randomFolderName();
const tempFolderName = randomFolderName();

try {
// Generate repository URL for the action to checkout
Expand Down

0 comments on commit afff74c

Please sign in to comment.