Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Add conditional for variable
Browse files Browse the repository at this point in the history
We should only run if there
are rst files that were changed.

Otherwise, the command will run to
all files if the ``files`` not specified.
  • Loading branch information
laysauchoa committed Jul 27, 2022
1 parent 6fa978c commit 2d55ff3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/linkcheck-changed-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@ jobs:
var="$var $file"
fi
done
make files="$var" linkcheck-changed-files
if [ -z "$var" ]
then
echo "No .rst changed files to check."
else
make files="$var" linkcheck-changed-files
fi

0 comments on commit 2d55ff3

Please sign in to comment.