From 51af7fb03bbd9e56b6b9cac1fed6a617049ef95b Mon Sep 17 00:00:00 2001 From: Agrendalath Date: Tue, 2 Jan 2024 14:31:40 +0100 Subject: [PATCH] build: do not run the upgrade action on forks --- .github/workflows/upgrade-python-requirements.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upgrade-python-requirements.yml b/.github/workflows/upgrade-python-requirements.yml index a045ec073..7d902ade1 100644 --- a/.github/workflows/upgrade-python-requirements.yml +++ b/.github/workflows/upgrade-python-requirements.yml @@ -2,7 +2,6 @@ name: Upgrade Python Requirements on: schedule: - # will start the job at 01:30 UTC every Friday - cron: "0 0 * * 0" workflow_dispatch: inputs: @@ -14,6 +13,8 @@ on: jobs: call-upgrade-python-requirements-workflow: uses: openedx/.github/.github/workflows/upgrade-python-requirements.yml@master + # Do not run on forks + if: github.repository_owner == 'openedx' with: branch: ${{ github.event.inputs.branch || 'master' }} # optional parameters below; fill in if you'd like github or email notifications