2424 description : Whether to publish the python artifacts into PyPi. Should be yes unless you've already completed this step.
2525 required : true
2626 default : ' no'
27+ REPO_TOKEN :
28+ description : Github Personal Access Token with repo permissions.
29+ required : true
2730 TAG_RELEASE :
2831 description : Whether to tag the release on GitHub. Should be yes unless you've already completed this step.
2932 required : true
4548 with :
4649 username : ${{ secrets.DOCKERHUB_USER }}
4750 password : ${{ secrets.DOCKERHUB_TOKEN }}
51+ - name : Install dependencies
52+ run : |
53+ sudo apt-get update --yes
54+ sudo apt-get install -y wget
4855 - name : Publish to Docker
4956 env :
5057 RELEASE : " ${{ github.event.inputs.RELEASE }}"
@@ -114,6 +121,8 @@ jobs:
114121 disable-cache : true
115122 - name : Install dependencies
116123 run : |
124+ sudo apt-get update --yes
125+ sudo apt-get install -y wget
117126 pip install python-dateutil
118127 pip install requests
119128 pip install twine
@@ -133,6 +142,10 @@ jobs:
133142 steps :
134143 - name : Checkout
135144 uses : actions/checkout@v6
145+ with :
146+ token : ${{ github.event.inputs.REPO_TOKEN }}
147+ repository : apache/beam
148+ persist-credentials : true
136149 - name : Set git config
137150 run : |
138151 git config user.name $GITHUB_ACTOR
@@ -156,14 +169,14 @@ jobs:
156169
157170 # Tag for Go SDK
158171 git tag "sdks/$VERSION_TAG" "$RC_TAG"^{} -m "Tagging release" --local-user="${{steps.import_gpg.outputs.name}}"
159- git push https://github.com/apache/beam "sdks/$VERSION_TAG"
172+ git push origin "sdks/$VERSION_TAG"
160173
161174 # Tag for repo root.
162175 git tag "$VERSION_TAG" "$RC_TAG"^{} -m "Tagging release" --local-user="${{steps.import_gpg.outputs.name}}"
163- git push https://github.com/apache/beam "$VERSION_TAG"
176+ git push origin "$VERSION_TAG"
164177
165178 git checkout -b "$POST_RELEASE_BRANCH" "$VERSION_TAG"
166- git push https://github.com/apache/beam "$POST_RELEASE_BRANCH"
179+ git push origin "$POST_RELEASE_BRANCH"
167180
168181 update_master :
169182 needs : push_git_tags
@@ -173,6 +186,9 @@ jobs:
173186 steps :
174187 - name : Check out code
175188 uses : actions/checkout@v6
189+ with :
190+ token : ${{ github.event.inputs.REPO_TOKEN }}
191+ ref : master
176192 - name : Set git config
177193 run : |
178194 git config user.name $GITHUB_ACTOR
0 commit comments