Skip to content

Commit 778b600

Browse files
committed
Always trigger update Python dependency on manual run
1 parent 6bedaef commit 778b600

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update_python_dependencies.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,13 @@ jobs:
7777
- name: Commit Changes and create new PR
7878
env:
7979
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80+
GH_EVENT: ${{ github.event_name }}
8081
run: |
8182
# Take the current date, subtract from a release cut date in the past (Mar 6, 2024),
8283
# then get the num days % 42 (our release cadence is 42 days).
8384
# This will ensure it only runs the week after a release branch has been cut.
8485
days_diff=$(( ($(date +%s) - $(date --date="240306" +%s) )/(60*60*24)%42 ))
85-
if [[ $days_diff -gt 6 ]]; then
86+
if [[ $GH_EVENT != 'workflow_dispatch' && $days_diff -gt 6 ]]; then
8687
echo "Exiting early. We only update dependencies the week after we cut the release"
8788
exit 0
8889
fi

0 commit comments

Comments
 (0)