diff --git a/README.md b/README.md index 0ad996e..85c28b7 100644 --- a/README.md +++ b/README.md @@ -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
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` | diff --git a/action.yml b/action.yml index b9812bc..43fe4c6 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/entrypoint.sh b/entrypoint.sh index eb29cb4..8bbf923 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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"