Skip to content

Commit 7c886bd

Browse files
committed
chore: deprecation
1 parent 2b7f7d2 commit 7c886bd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

actions/check-mkdocs/action.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ author: Kiyoon Kim
55
inputs:
66
requirements-docs-file:
77
description: Path to the requirements_docs.txt file
8+
deprecationMessage: Use `requirements-file` instead
9+
requirements-file:
10+
description: Path to the requirements.txt file for building mkdocs
811
required: true
912
default: deps/lock/x86_64-unknown-linux-gnu/requirements_docs.txt
1013
src-dir:
@@ -30,7 +33,14 @@ runs:
3033
run: |
3134
uv venv
3235
source .venv/bin/activate
33-
uv pip install -r ${{ inputs.requirements-docs-file }}
36+
37+
if [[ -n "${{ inputs.requirements-docs-file }}" ]]; then
38+
echo "❌ Warning: 'requirements-docs-file' input is deprecated. Use 'requirements-file' instead."
39+
export requirements_file="${{ inputs.requirements-docs-file }}"
40+
else
41+
export requirements_file="${{ inputs.requirements-file }}"
42+
fi
43+
uv pip install -r "${requirements_file}"
3444
3545
set +e # Do not exit shell on failure
3646

0 commit comments

Comments
 (0)