kaxil commented on a change in pull request #11541:
URL: https://github.com/apache/airflow/pull/11541#discussion_r507191295



##########
File path: .github/workflows/build-images-workflow-run.yml
##########
@@ -204,19 +217,20 @@ jobs:
           Source Sha: ${{ needs.cancel-workflow-runs.outputs.sourceHeadSha }}
           Merge commit Sha: ${{ 
needs.cancel-workflow-runs.outputs.mergeCommitSha }}
           Target commit Sha: ${{ 
needs.cancel-workflow-runs.outputs.targetCommitSha }}
+        run: printenv
+      - name: Selective checks
+        id: selective-checks
+        env:
+          EVENT_NAME: ${{ needs.cancel-workflow-runs.outputs.sourceEvent }}
+          MERGE_COMMIT_SHA: ${{ 
needs.cancel-workflow-runs.outputs.mergeCommitSha }}
         run: |
-          printenv
-      - name: Set versions
-        id: versions
-        run: |
-          . ./scripts/ci/libraries/_script_init.sh
-
-          initialization::ga_output python-versions \
-              "$(initialization::parameters_to_json 
"${CURRENT_PYTHON_MAJOR_MINOR_VERSIONS[@]}")"
-          initialization::ga_output default-python-version 
"${CURRENT_PYTHON_MAJOR_MINOR_VERSIONS[0]}"
-
-          initialization::ga_output all-python-versions \
-              "$(initialization::parameters_to_json 
"${ALL_PYTHON_MAJOR_MINOR_VERSIONS[@]}")"
+          if [[ ${EVENT_NAME} == "pull_request" ]]; then

Review comment:
       yea, as I said in another comment, not strictly required but having 
quotes, is harmless and just for uniformity since we have got quotes in other 
places 
([example](https://github.com/apache/airflow/blob/master/scripts/docker/install_mysql.sh#L21))
 :) but yeah feel free to ignore it :) . 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to