You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by yh...@apache.org on 2026/04/15 22:00:28 UTC

(beam) branch master updated: fixed PythonDocker rerun matrix gating and gh setup (#38199)

This is an automated email from the ASF dual-hosted git repository.

yhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new ae536b6f0f8 fixed PythonDocker rerun matrix gating and gh setup (#38199)
ae536b6f0f8 is described below

commit ae536b6f0f83b978854f1d6852fbacb62a3e5ec0
Author: Abdelrahman Ibrahim <ab...@gmail.com>
AuthorDate: Thu Apr 16 00:00:19 2026 +0200

    fixed PythonDocker rerun matrix gating and gh setup (#38199)
---
 .github/actions/rerun-job-action/action.yml       | 6 +-----
 .github/workflows/README.md                       | 4 ++--
 .github/workflows/beam_PreCommit_PythonDocker.yml | 5 +----
 3 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/.github/actions/rerun-job-action/action.yml b/.github/actions/rerun-job-action/action.yml
index 73679aaaf81..37a068f5a84 100644
--- a/.github/actions/rerun-job-action/action.yml
+++ b/.github/actions/rerun-job-action/action.yml
@@ -114,11 +114,7 @@ runs:
       -s $URL 
   - name: Install GH Cli
     if: ${{env.rerun != 'false' }}
-    shell: bash
-    run: |
-      wget https://github.com/cli/cli/releases/download/v2.31.0/gh_2.31.0_linux_amd64.tar.gz
-      tar -xvf gh_2.31.0_linux_amd64.tar.gz
-      sudo mv gh_2.31.0_linux_amd64/bin/gh /usr/local/bin
+    uses: ./.github/actions/setup-gh-cli-linux
   - name: Exit rest of the run
     if: ${{env.rerun != 'false' }}
     shell: bash
diff --git a/.github/workflows/README.md b/.github/workflows/README.md
index 75f09f12f4a..9e685a98327 100644
--- a/.github/workflows/README.md
+++ b/.github/workflows/README.md
@@ -104,13 +104,13 @@ jobs:
       github.event_name == 'pull_request_target' ||
       (github.event_name == 'schedule' && github.repository == 'apache/beam') ||
       github.event_name == 'workflow_dispatch' ||
-      startsWith(github.event.comment.body, 'Run Job With Matrix')
+      (github.event_name == 'issue_comment' && github.event.comment.body == format('{0} {1}', matrix.job_phrase, matrix.python_version))
     steps:
       - uses: actions/checkout@v3
       - name: Setup repository
         uses: ./.github/actions/setup-action
         with:
-          comment_phrase: ${{ matrix.job_phrase }}
+          comment_phrase: ${{ matrix.job_phrase }} ${{ matrix.python_version }}
           github_token: ${{ secrets.GITHUB_TOKEN }}
           github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }} ${{ matrix.python_version }})
 ```
diff --git a/.github/workflows/beam_PreCommit_PythonDocker.yml b/.github/workflows/beam_PreCommit_PythonDocker.yml
index 85e8445852e..c40190201d0 100644
--- a/.github/workflows/beam_PreCommit_PythonDocker.yml
+++ b/.github/workflows/beam_PreCommit_PythonDocker.yml
@@ -18,8 +18,6 @@ on:
   pull_request_target:
     branches: [ "master", "release-*" ]
     paths: [ "model/**","sdks/python/**","release/**", 'release/trigger_all_tests.json', '.github/trigger_files/beam_PreCommit_PythonDocker.json']
-  issue_comment:
-    types: [created]
   push:
     tags: ['v*']
     branches: ['master', 'release-*']
@@ -69,8 +67,7 @@ jobs:
       github.event_name == 'push' ||
       github.event_name == 'pull_request_target' ||
       github.event_name == 'workflow_dispatch' ||
-      (github.event_name == 'schedule' && github.repository == 'apache/beam') ||
-      startsWith(github.event.comment.body, 'Run PythonDocker PreCommit')
+      (github.event_name == 'schedule' && github.repository == 'apache/beam')
     steps:
       - uses: actions/checkout@v4
       - name: Setup repository