Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add optional output folder
  • Loading branch information
Greg Brimble committed Apr 16, 2021
1 parent 7054e07 commit ad5da1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -50,6 +50,7 @@ The following input options are available:
| `password` | Your tailwindui.com account password | Yes | |
| `token` | [A GitHub Personal Access Token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) with the `repo` scope | No | Defaults to the automatically provided [`{{ github.token }}`](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token) |
| `output` | The repository to output to <br /> e.g. `gregbrimble/tailwindui` | No | Defaults to the current repository (`{{ github.repository }}`) |
| `outputfolder` | The folder to output the crawled components in the `output` repository (i.e. [the same function as the `OUTPUT` value in `.env`]()). | No | Defaults to `./` |
| `commitmessage` | The message to commit with in the output repository | No | Defaults to `Update tailwindui.com` |
| `current_branch` | The branch in the current repository where .env can be found | No | Defaults to `master` |
| `branch` | The branch to commit changes to | No | Defaults to `master` |
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Expand Up @@ -16,6 +16,10 @@ inputs:
description: "The repository to push the crawler output to (defaults to the current repository)"
required: false
default: ${{ github.repository }}
outputfolder:
description: "The folder to output the crawled components in the output repository"
required: false
default: "./"
commitmessage:
description: "The commit message to use when updating the output repository"
required: false
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Expand Up @@ -48,7 +48,7 @@ node /checkout.js
# Run crawler
echo "Running crawler..."

export OUTPUT="/output"
export OUTPUT="/output/$INPUT_OUTPUTFOLDER"
export EMAIL="$INPUT_EMAIL"
export PASSWORD="$INPUT_PASSWORD"

Expand Down

0 comments on commit ad5da1b

Please sign in to comment.