Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit c854b45

Browse files
authored
fix: updated workflow for cosmonauts team
1 parent de87c3f commit c854b45

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/upgrade-python-requirements.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Upgrade Requirements
22

33
on:
44
schedule:
5-
# will start the job at 4:15 UTC every Wednesday
6-
- cron: "15 4 * * 3"
5+
# will start the job at 4:15 UTC on 13th and 28th of every month
6+
- cron: "15 4 13,28 * *"
77
workflow_dispatch:
88
inputs:
99
branch:
@@ -52,7 +52,7 @@ jobs:
5252
--target-branch="${{ env.target_branch }}" --base-branch-name="upgrade-python-requirements" \
5353
--commit-message="chore: Updating Python Requirements" --pr-title="Python Requirements Update" \
5454
--pr-body="Python requirements update.Please review the [changelogs](https://openedx.atlassian.net/wiki/spaces/TE/pages/1001521320/Python+Package+Changelogs) for the upgraded packages." \
55-
--user-reviewers="" --team-reviewers="edx-data-engineering" --delete-old-pull-requests
55+
--user-reviewers="" --team-reviewers="masters-devs-cosmonauts" --delete-old-pull-requests
5656
5757
- name: Send failure notification
5858
if: ${{ failure() }}
@@ -63,6 +63,19 @@ jobs:
6363
username: ${{secrets.EDX_SMTP_USERNAME}}
6464
password: ${{secrets.EDX_SMTP_PASSWORD}}
6565
subject: Upgrade python requirements workflow failed in ${{github.repository}}
66-
to: data-engineering@edx.org
66+
to: masters-requirements-update@edx.opsgenie.net
6767
from: github-actions <github-actions@edx.org>
6868
body: Upgrade python requirements workflow in ${{github.repository}} failed! For details see "github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
69+
70+
- name: Send success notification
71+
if: ${{ success() }}
72+
uses: dawidd6/action-send-mail@v3
73+
with:
74+
server_address: email-smtp.us-east-1.amazonaws.com
75+
server_port: 465
76+
username: ${{secrets.EDX_SMTP_USERNAME}}
77+
password: ${{secrets.EDX_SMTP_PASSWORD}}
78+
subject: Upgrade python requirements workflow executed successfully in ${{github.repository}}
79+
to: masters-requirements-update@edx.opsgenie.net
80+
from: github-actions <github-actions@edx.org>
81+
body: Upgrade python requirements workflow in ${{github.repository}} successfully created 'Python Requirements Update' PR. Please review it "github.com/${{ github.repository }}/pulls"

0 commit comments

Comments
 (0)