From b64917346a15bac9bb9c1a755f6f6c7d7f150f88 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 12 Aug 2024 09:47:20 -0400 Subject: [PATCH 1/2] build: Create upgrade-python-requirements.yml Add regular requirements update PRs. --- .../workflows/upgrade-python-requirements.yml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/upgrade-python-requirements.yml diff --git a/.github/workflows/upgrade-python-requirements.yml b/.github/workflows/upgrade-python-requirements.yml new file mode 100644 index 0000000..95756d5 --- /dev/null +++ b/.github/workflows/upgrade-python-requirements.yml @@ -0,0 +1,31 @@ +name: Upgrade Python Requirements + +on: + schedule: + - cron: "0 0 * * 1" + workflow_dispatch: + inputs: + branch: + description: "Target branch against which to create requirements PR" + required: true + # If copying this template manually, you must provide your default branch name + # in quotes, such as 'master' + default: "master" + +jobs: + call-upgrade-python-requirements-workflow: + uses: openedx/.github/.github/workflows/upgrade-python-requirements.yml@master + with: + # If copying manually, also provide your default branch name in quotes here + branch: ${{ github.event.inputs.branch || master }} + # optional parameters below; fill in if you'd like github or email notifications + # user_reviewers: "" + # team_reviewers: "" + # email_address: "" + # send_success_notification: false + # python_version: "" + secrets: + requirements_bot_github_token: ${{ secrets.REQUIREMENTS_BOT_GITHUB_TOKEN }} + requirements_bot_github_email: ${{ secrets.REQUIREMENTS_BOT_GITHUB_EMAIL }} + edx_smtp_username: ${{ secrets.EDX_SMTP_USERNAME }} + edx_smtp_password: ${{ secrets.EDX_SMTP_PASSWORD }} From 1b95c56761b8bfad0238febe25152636e2849a7e Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 12 Aug 2024 11:43:52 -0400 Subject: [PATCH 2/2] build: Update upgrade-python-requirements.yml --- .github/workflows/upgrade-python-requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/upgrade-python-requirements.yml b/.github/workflows/upgrade-python-requirements.yml index 95756d5..384cecf 100644 --- a/.github/workflows/upgrade-python-requirements.yml +++ b/.github/workflows/upgrade-python-requirements.yml @@ -17,7 +17,7 @@ jobs: uses: openedx/.github/.github/workflows/upgrade-python-requirements.yml@master with: # If copying manually, also provide your default branch name in quotes here - branch: ${{ github.event.inputs.branch || master }} + branch: ${{ github.event.inputs.branch || 'master' }} # optional parameters below; fill in if you'd like github or email notifications # user_reviewers: "" # team_reviewers: ""