Skip to content

Commit

Permalink
Merge pull request #92 from ai-cfia/90-as-a-developer-i-would-like-to…
Browse files Browse the repository at this point in the history
…-be-able-to-specify-a-config-file-for-yaml-linting

Issue #90: Adds absolute path to config file reference given in parameters
  • Loading branch information
SonOfLope authored Feb 7, 2024
2 parents e06383b + d62071e commit 8521ad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow-yaml-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
for file in $files; do
if [[ $file == *.yml || $file == *.yaml ]]; then
# Check if a custom config path is provided and file exists
if [[ -n "$config_path" && -f "$config_path" ]]; then
yamllint -c ${{ inputs.config-file-path }} "$file"
if [ -n "${{ github.event.inputs.config-file-path }}" ]; then
yamllint -c "${{ github.workspace }}/${{ github.event.inputs.config-file-path }}" "$file"
else
yamllint "$file"
fi
Expand Down

0 comments on commit 8521ad2

Please sign in to comment.