diff --git a/.github/workflows/learn-github-actions.yml b/.github/workflows/learn-github-actions.yml index be9e4ac..fba862e 100644 --- a/.github/workflows/learn-github-actions.yml +++ b/.github/workflows/learn-github-actions.yml @@ -13,20 +13,20 @@ jobs: coding_standards: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Check if file begins with "//" - run: | - # Set the file path you want to check - FILE_PATH="my-app.php" - - # Check if the file begins with "//" - if [[ "$(head -n 1 "$FILE_PATH")" == "//"* ]]; then - echo "File begins with '//'." - else - echo "File does not begin with '//'." - exit 1 - fi \ No newline at end of file + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Check if file begins with "//" + run: | + # Set the file path you want to check + FILE_PATH="my-app.php" + + # Check if the file begins with "//" + if [[ "$(head -n 1 "$FILE_PATH")" == "//"* ]]; then + echo "File begins with '//'." + else + echo "File does not begin with '//'." + exit 1 + fi + \ No newline at end of file