Skip to content

Commit

Permalink
feat(deploy-docs): add new input variable to select mkdocs-requiremen…
Browse files Browse the repository at this point in the history
…ts (#164)

* feat(deploy-docs): add new input variable to select mkdocs-requirements

Signed-off-by: Takayuki AKAMINE <[email protected]>

* chore(deploy-docs): updated README.md

Signed-off-by: Takayuki AKAMINE <[email protected]>

* Update deploy-docs/README.md

Co-authored-by: Kenji Miyake <[email protected]>

* ci(pre-commit): autofix

* Update deploy-docs/action.yaml

Co-authored-by: Kenji Miyake <[email protected]>

* Update deploy-docs/action.yaml

Co-authored-by: Kenji Miyake <[email protected]>

Co-authored-by: Kenji Miyake <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 9, 2022
1 parent 5926b5a commit ba750d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 5 additions & 4 deletions deploy-docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ jobs:
## Inputs
| Name | Required | Description |
| ------ | -------- | ------------------------------------- |
| token | true | The token for push to `gh-pages`. |
| latest | true | Whether to create the `latest` alias. |
| Name | Required | Description |
| ----------------------- | -------- | ------------------------------------- |
| token | true | The token for push to `gh-pages`. |
| latest | true | Whether to create the `latest` alias. |
| mkdocs-requirements-txt | false | `requirements.txt` for MkDocs |

## Outputs

Expand Down
6 changes: 5 additions & 1 deletion deploy-docs/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ inputs:
latest:
description: ""
required: false
mkdocs-requirements-txt:
description: ""
required: false
default: ${GITHUB_ACTION_PATH}/mkdocs-requirements.txt

runs:
using: composite
Expand All @@ -20,7 +24,7 @@ runs:
- name: Install MkDocs
run: |
pip3 install -U wheel
pip3 install -r ${GITHUB_ACTION_PATH}/mkdocs-requirements.txt
pip3 install -r ${{ inputs.mkdocs-requirements-txt }}
shell: bash

# TODO: Remove after v1.2.0 or v2.0.0 is released
Expand Down

0 comments on commit ba750d8

Please sign in to comment.