Skip to content
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ to be added to the Github repo.
with:
username: ${{ secrets.atlassianUsername }}
apitoken: ${{ secrets.atlassianApitoken }}
requirementsfile: custom_requirements.txt # this is an optional parameter

.. _confluencebuilder: https://github.com/sphinx-contrib/confluencebuilder
.. _Github secrets: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets
Expand Down
3 changes: 3 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ inputs:
docsdir:
description: 'directory in the repo where the docs are located'
default: ''
requirementsfile:
description: 'file at base of the directory if it not requirements.txt'
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
4 changes: 3 additions & 1 deletion entrypoint
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh -l

# install requirements.txt if it exists
if [ -f requirements.txt ]; then
if [ "$INPUT_REQUIREMENTSFILE" ]; then
pip install --user -r $INPUT_REQUIREMENTSFILE
elif [ -f requirements.txt ]; then
pip install --user -r requirements.txt
fi

Expand Down