From 25d1b0220a518f5553813d5632132f37c17fabff Mon Sep 17 00:00:00 2001 From: Tarun Annapareddy Date: Mon, 13 Oct 2025 12:16:59 -0700 Subject: [PATCH 1/7] Fix Credentials issue while commit --- .github/workflows/build_release_candidate.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_release_candidate.yml b/.github/workflows/build_release_candidate.yml index 52997821aab9..1f80e6adc06e 100644 --- a/.github/workflows/build_release_candidate.yml +++ b/.github/workflows/build_release_candidate.yml @@ -564,7 +564,6 @@ jobs: 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: From f58228737f60bfec27dfd2bdbe2a1bd0bb3112fe Mon Sep 17 00:00:00 2001 From: Tarun Annapareddy Date: Mon, 13 Oct 2025 12:16:59 -0700 Subject: [PATCH 2/7] Fix Credentials issue while commit --- .github/workflows/build_release_candidate.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build_release_candidate.yml b/.github/workflows/build_release_candidate.yml index 52997821aab9..4048777bd6a8 100644 --- a/.github/workflows/build_release_candidate.yml +++ b/.github/workflows/build_release_candidate.yml @@ -597,6 +597,8 @@ jobs: python gen_managed_doc.py --output_location ${{ runner.temp }}/managed-io.md - name: Create commit on beam branch working-directory: beam + env: + GH_TOKEN: ${{ github.event.inputs.REPO_TOKEN }} run: | git fetch origin master git checkout -b $BRANCH_NAME origin/master @@ -605,6 +607,7 @@ jobs: 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 remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/apache/beam git push -f --set-upstream origin $BRANCH_NAME - name: Create beam PR working-directory: beam From 18259c24abecb5b53ee2750b93ad90ce1a1a5fdf Mon Sep 17 00:00:00 2001 From: Tarun Annapareddy Date: Mon, 13 Oct 2025 12:59:15 -0700 Subject: [PATCH 3/7] Fix Workflow --- .github/workflows/build_release_candidate.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_release_candidate.yml b/.github/workflows/build_release_candidate.yml index 6241e7a92593..c6daf8caa58b 100644 --- a/.github/workflows/build_release_candidate.yml +++ b/.github/workflows/build_release_candidate.yml @@ -414,7 +414,7 @@ jobs: git config user.email actions@"$RUNNER_NAME".local git add -A git commit -m "Update beam-site for release ${{ github.event.inputs.RELEASE }}." -m "Content generated from commit ${RELEASE_COMMIT}." - git push -f --set-upstream origin $BRANCH_NAME + git push https://github.com/apache/beam $BRANCH_NAME - name: Create beam-site PR working-directory: beam-site env: @@ -564,6 +564,7 @@ jobs: 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: @@ -606,8 +607,7 @@ jobs: 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 remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/apache/beam - git push -f --set-upstream origin $BRANCH_NAME + git push https://github.com/apache/beam $BRANCH_NAME - name: Create beam PR working-directory: beam env: From 2483162ce5f06e8290340cd23fe51567b425b759 Mon Sep 17 00:00:00 2001 From: Tarun Annapareddy Date: Mon, 13 Oct 2025 13:00:44 -0700 Subject: [PATCH 4/7] Fix path --- .github/workflows/build_release_candidate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_release_candidate.yml b/.github/workflows/build_release_candidate.yml index c6daf8caa58b..01989dda1f5e 100644 --- a/.github/workflows/build_release_candidate.yml +++ b/.github/workflows/build_release_candidate.yml @@ -414,7 +414,7 @@ jobs: git config user.email actions@"$RUNNER_NAME".local git add -A git commit -m "Update beam-site for release ${{ github.event.inputs.RELEASE }}." -m "Content generated from commit ${RELEASE_COMMIT}." - git push https://github.com/apache/beam $BRANCH_NAME + git push -f --set-upstream origin $BRANCH_NAME - name: Create beam-site PR working-directory: beam-site env: From c87a0f55ca8d8260075ab82f077344112fea9756 Mon Sep 17 00:00:00 2001 From: Tarun Annapareddy Date: Mon, 13 Oct 2025 13:17:10 -0700 Subject: [PATCH 5/7] Fix path --- .github/workflows/build_release_candidate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_release_candidate.yml b/.github/workflows/build_release_candidate.yml index 01989dda1f5e..25bd39321e18 100644 --- a/.github/workflows/build_release_candidate.yml +++ b/.github/workflows/build_release_candidate.yml @@ -414,7 +414,7 @@ jobs: git config user.email actions@"$RUNNER_NAME".local git add -A git commit -m "Update beam-site for release ${{ github.event.inputs.RELEASE }}." -m "Content generated from commit ${RELEASE_COMMIT}." - git push -f --set-upstream origin $BRANCH_NAME + git push -f --set-upstream origin $BRANCH_NAME - name: Create beam-site PR working-directory: beam-site env: From a1da6b0e3a8e7db16dd9a5c12aa41cfc31dbebaf Mon Sep 17 00:00:00 2001 From: Tarun Annapareddy Date: Mon, 13 Oct 2025 13:52:53 -0700 Subject: [PATCH 6/7] Add AUth --- .github/workflows/build_release_candidate.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_release_candidate.yml b/.github/workflows/build_release_candidate.yml index 25bd39321e18..4048777bd6a8 100644 --- a/.github/workflows/build_release_candidate.yml +++ b/.github/workflows/build_release_candidate.yml @@ -607,7 +607,8 @@ jobs: 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 https://github.com/apache/beam $BRANCH_NAME + git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/apache/beam + git push -f --set-upstream origin $BRANCH_NAME - name: Create beam PR working-directory: beam env: From 7d901d042a32742809813b8f992da0312d9592b6 Mon Sep 17 00:00:00 2001 From: Tarun Annapareddy Date: Mon, 13 Oct 2025 14:02:09 -0700 Subject: [PATCH 7/7] persist creds --- .github/workflows/build_release_candidate.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build_release_candidate.yml b/.github/workflows/build_release_candidate.yml index 4048777bd6a8..fc61570ceaf3 100644 --- a/.github/workflows/build_release_candidate.yml +++ b/.github/workflows/build_release_candidate.yml @@ -564,7 +564,7 @@ jobs: repository: apache/beam path: beam token: ${{ github.event.inputs.REPO_TOKEN }} - persist-credentials: false + persist-credentials: true - name: Install Python 3.9 uses: actions/setup-python@v5 with: @@ -597,8 +597,6 @@ jobs: python gen_managed_doc.py --output_location ${{ runner.temp }}/managed-io.md - name: Create commit on beam branch working-directory: beam - env: - GH_TOKEN: ${{ github.event.inputs.REPO_TOKEN }} run: | git fetch origin master git checkout -b $BRANCH_NAME origin/master @@ -607,7 +605,6 @@ jobs: 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 remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/apache/beam git push -f --set-upstream origin $BRANCH_NAME - name: Create beam PR working-directory: beam