diff --git a/.github/workflows/static_checks.yml b/.github/workflows/static_checks.yml index 62c050ccc5b..2330022dbdc 100644 --- a/.github/workflows/static_checks.yml +++ b/.github/workflows/static_checks.yml @@ -154,6 +154,11 @@ jobs: echo "build --disk_cache=$EXPANDED_BAZEL_CACHE_PATH" >> $HOME/.bazelrc shell: bash + - name: Binary files check + run: | + git fetch --all + bash /home/runner/work/oppia-android/oppia-android/scripts/pre-commit.sh + - name: Regex Patterns Validation Check # The expression if: ${{ !cancelled() }} runs a job or step regardless of its success or failure while responding to cancellations, # serving as a cancellation-compliant alternative to if: ${{ always() }} in concurrent workflows. @@ -205,11 +210,6 @@ jobs: run: | bazel run //scripts:string_resource_validation_check -- $(pwd) - - name: Binary files check - run: | - git fetch --all - bash /home/runner/work/oppia-android/oppia-android/scripts/pre-commit.sh - # Note that caching is intentionally not enabled for this check since licenses should always be # verified without any potential influence from earlier builds (i.e. always from a clean build to # ensure the results exactly match the current state of the repository).