derrickaw commented on code in PR #41428:
URL: https://github.com/apache/beam/pull/41428#discussion_r4602359994
##########
.github/workflows/update_python_dependencies.yml:
##########
@@ -39,15 +39,35 @@ jobs:
runs-on: [self-hosted, ubuntu-24.04, highmem]
outputs:
properties: ${{ steps.test-properties.outputs.properties }}
+ should_run: ${{ steps.check_cadence.outputs.should_run }}
steps:
+ - name: Check release cadence
+ id: check_cadence
+ env:
+ GH_EVENT: ${{ github.event_name }}
+ run: |
+ # Take the current date, subtract from a release cut date in the
past (Oct 28, 2026),
+ # then get the num days % 42 (our release cadence is 42 days).
+ # This will ensure it only runs in week 1 and week 3 after a release
branch has been cut,
+ # preserving a ~3-week soak window before the next release cut.
+ days_diff=$(( ($(date +%s) - $(date --date="261028" +%s)
)/(60*60*24)%42 ))
+ if [[ $GH_EVENT == 'workflow_dispatch' || $days_diff -le 6 || (
$days_diff -ge 14 && $days_diff -le 20 ) ]]; then
+ echo "should_run=true" >> "$GITHUB_OUTPUT"
+ else
+ echo "Exiting early. We only update dependencies in week 1 and
week 3 after we cut the release"
+ echo "should_run=false" >> "$GITHUB_OUTPUT"
+ fi
- name: Checkout code
Review Comment:
Thanks, done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]