Skip to content

Commit

Permalink
Correct file start test
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanrscott committed Oct 10, 2023
1 parent c4e5a1e commit b3e16e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/learn-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
FILE_PATH="my-app.php"
# Check if the file begins with "//"
if [[ "$(head -n 1 "$FILE_PATH")" == "//"* ]]; then
echo "File begins with '//'."
if [[ "$(head -n 1 "$FILE_PATH")" == "<?php"* ]]; then
echo "File begins with '<?php'."
else
echo "File does not begin with '//'."
echo "File does not begin with '<?php'."
exit 1
fi

0 comments on commit b3e16e1

Please sign in to comment.