This is an automated email from the ASF dual-hosted git repository.
chamikara 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 2c2211edb33 Add Action to generate ManagedIO doc PR (#35828)
2c2211edb33 is described below
commit 2c2211edb33012319d665a46101b46c90f10e6a4
Author: Tarun Annapareddy <[email protected]>
AuthorDate: Tue Aug 12 11:26:14 2025 -0700
Add Action to generate ManagedIO doc PR (#35828)
* Add workflow action for generating managed-io doc PR
* add flag control
* Fix no doc change case
* Allow empty commit
* Checkout from master
* update text
---
.github/workflows/build_release_candidate.yml | 71 ++++++++++++++++++++++++++-
1 file changed, 70 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build_release_candidate.yml
b/.github/workflows/build_release_candidate.yml
index b9283665f03..1e2856eee0c 100644
--- a/.github/workflows/build_release_candidate.yml
+++ b/.github/workflows/build_release_candidate.yml
@@ -40,6 +40,8 @@ on:
beam_site_pr: create the documentation update PR against
apache/beam-site.
--
prism: build and upload the artifacts to the release for this tag
+ --
+ managed_io_docs_pr: create the managed-io.md update PR against
apache/beam.
required: true
default: |
{java_artifacts: "no",
@@ -47,7 +49,8 @@ on:
docker_artifacts: "no",
python_artifacts: "no",
beam_site_pr: "no",
- prism: "no"}
+ prism: "no",
+ managed_io_docs_pr: "no"}
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
@@ -545,3 +548,69 @@ jobs:
svn add --force --parents prism
svn status
svn commit -m "Staging Prism artifacts for Apache Beam ${RELEASE}
RC${RC_NUM}" --non-interactive --username "${{ github.event.inputs.APACHE_ID
}}" --password "${{ github.event.inputs.APACHE_PASSWORD }}"
+
+ managed_io_docs_pr:
+ if: ${{ fromJson(github.event.inputs.STAGE).managed_io_docs_pr == 'yes'}}
+ runs-on: ubuntu-22.04
+ env:
+ BRANCH_NAME: updates_managed_io_docs_${{ github.event.inputs.RELEASE
}}_rc${{ github.event.inputs.RC }}
+ BEAM_ROOT_DIR: ${{ github.workspace }}/beam
+ MANAGED_IO_DOCS_PATH:
website/www/site/content/en/documentation/io/managed-io.md
+ steps:
+ - name: Checkout Beam Repo
+ uses: actions/checkout@v4
+ with:
+ ref: "v${{ github.event.inputs.RELEASE }}-RC${{
github.event.inputs.RC }}"
+ repository: apache/beam
+ path: beam
+ token: ${{ github.event.inputs.REPO_TOKEN }}
+ persist-credentials: false
+ - name: Install Python 3.9
+ uses: actions/setup-python@v5
+ with:
+ python-version: '3.9'
+ - name: Install Java 11
+ uses: actions/setup-java@v4
+ with:
+ distribution: 'temurin'
+ java-version: '11'
+ - name: Remove default github maven configuration
+ # This step is a workaround to avoid a decryption issue of Beam's
+ # net.linguica.gradle.maven.settings plugin and github's provided maven
+ # settings.xml file
+ run: rm ~/.m2/settings.xml || true
+ - name: Install SDK
+ working-directory: beam/sdks/python
+ run: |
+ pip install -e.
+ - name: Build Expansion Service Jar
+ working-directory: beam
+ run: |
+ ./gradlew sdks:java:io:expansion-service:shadowJar
+ - name: Build GCP Expansion Service Jar
+ working-directory: beam
+ run: |
+ ./gradlew
sdks:java:io:google-cloud-platform:expansion-service:shadowJar
+ - name: Generate Managed IO Docs
+ working-directory: beam/sdks/python
+ run: |
+ python gen_managed_doc.py --output_location ${{ runner.temp
}}/managed-io.md
+ - name: Create commit on beam branch
+ working-directory: beam
+ run: |
+ git fetch origin master
+ git checkout -b $BRANCH_NAME origin/master
+ mv ${{ runner.temp }}/managed-io.md ${{ env.MANAGED_IO_DOCS_PATH }}
+ git config user.name $GITHUB_ACTOR
+ git config user.email actions@"$RUNNER_NAME".local
+ git add ${{ env.MANAGED_IO_DOCS_PATH }}
+ git commit --allow-empty -m "Update managed-io.md for release ${{
github.event.inputs.RELEASE }}-RC${{ github.event.inputs.RC }}."
+ git push -f --set-upstream origin $BRANCH_NAME
+ - name: Create beam PR
+ working-directory: beam
+ env:
+ GH_TOKEN: ${{ github.event.inputs.REPO_TOKEN }}
+ PR_TITLE: "Update managed-io.md for release ${{
github.event.inputs.RELEASE }}-RC${{ github.event.inputs.RC }}"
+ PR_BODY: "Content generated from release ${{
github.event.inputs.RELEASE }}-RC${{ github.event.inputs.RC }}."
+ run: |
+ gh pr create -t "$PR_TITLE" -b "$PR_BODY" --base master --repo
apache/beam