You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2024/04/11 18:31:26 UTC
(beam) 01/01: Move dependency updates to right after branch cut
This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch users/damccorm/depUpdates
in repository https://gitbox.apache.org/repos/asf/beam.git
commit 191ff1bf535e46a8c183b32f42d64ac29309d418
Author: Danny McCormick <da...@google.com>
AuthorDate: Thu Apr 11 14:31:14 2024 -0400
Move dependency updates to right after branch cut
---
.github/workflows/update_python_dependencies.yml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/update_python_dependencies.yml b/.github/workflows/update_python_dependencies.yml
index 3bb37a6d14e..876f88f107f 100644
--- a/.github/workflows/update_python_dependencies.yml
+++ b/.github/workflows/update_python_dependencies.yml
@@ -31,8 +31,6 @@ permissions:
issues: read
statuses: read
-
-
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GE_CACHE_USERNAME }}
@@ -80,6 +78,11 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
+ days_diff=$(( ($(date +%s) - $(date --date="240306" +%s) )/(60*60*24)%42 ))
+ if [[ $days_diff -gt 6 ]]; then
+ echo "Exiting early. We only update dependencies the week after we cut the release"
+ exit 0
+ fi
branchName=weekly_update_python_dependencies_$(date +%s)
git checkout -b $branchName
git add -A
@@ -88,7 +91,7 @@ jobs:
echo "Changes are ready to commit"
git commit -m "Update Python Dependencies" --quiet
git push origin $branchName --quiet
- GITHUB_PR_URL=$(gh pr create --title "Update Python Dependencies from BRANCH $branchName" --body "This PR was create using the update python dependencies from branch $branchName - by default this does not execute tests due to a limitation in GitHub Actions. To review this PR, please (1) review the contents to make sure all dependency upgrades are formatted correctly, (2) close and reopen the PR (3) Approve/merge if tests pass successfully.")
+ GITHUB_PR_URL=$(gh pr create --title "Update Python Dependencies" --label "python" --body "This PR was created by automation - by default this does not execute tests due to a limitation in GitHub Actions. To review this PR, please (1) review the contents to make sure all dependency upgrades are formatted correctly, (2) close and reopen the PR (3) Approve/merge if tests pass successfully.")
echo "Link of the new PR $GITHUB_PR_URL"
else
echo "No changes on the files"