-
Notifications
You must be signed in to change notification settings - Fork 29
BB2-4817 run scheduled django commands on GitHub Actions #1604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
annamontare-nava
merged 11 commits into
master
from
anna/bb2-4817-scheduled-django-commands
May 28, 2026
+52
−0
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
70b37d9
add workflow_call to run-manage-command.yml and add scheduled command…
annamontare-nava 3529263
add name for workflow
annamontare-nava 30f180f
fix syntax
annamontare-nava 31bc343
fix syntax (2)
annamontare-nava e7204fa
fix syntax (3)
annamontare-nava 4507130
fix syntax (4)
annamontare-nava 25a05a4
Merge branch 'master' into anna/bb2-4817-scheduled-django-commands
annamontare-nava dfe6f60
update input description
annamontare-nava 5cd9dc4
add fail-fast: false and inherit secrets
annamontare-nava fc3504e
Merge branch 'master' into anna/bb2-4817-scheduled-django-commands
JamesDemeryNava 9be60df
Merge branch 'master' into anna/bb2-4817-scheduled-django-commands
annamontare-nava File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
annamontare-nava marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Scheduled Django Manage Commands | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "0 3 * * *" | ||
| timezone: "America/New_York" | ||
| - cron: "0 18 * * *" | ||
| timezone: "America/New_York" | ||
| workflow_dispatch: | ||
| inputs: | ||
| environment_level: | ||
| description: 'Environment(s) to run against' | ||
| required: true | ||
| type: choice | ||
| options: | ||
| - lower | ||
| - higher | ||
|
|
||
| jobs: | ||
| scheduled-lower-environment: | ||
|
annamontare-nava marked this conversation as resolved.
|
||
| uses: ./.github/workflows/run-manage-command.yml | ||
| if: ${{ inputs.environment_level == 'lower' || github.event.schedule == '0 18 * * *' }} | ||
| with: | ||
| environment: test | ||
| command: log_global_state_metrics | ||
| secrets: inherit | ||
| scheduled-higher-environments: | ||
| uses: ./.github/workflows/run-manage-command.yml | ||
| if: ${{ inputs.environment_level == 'higher' || github.event.schedule == '0 3 * * *' }} | ||
| strategy: | ||
|
annamontare-nava marked this conversation as resolved.
|
||
| fail-fast: false | ||
| matrix: | ||
| environment: | ||
| - sandbox | ||
| - prod | ||
| command: | ||
| - log_global_state_metrics | ||
| - authflow_id_delete | ||
| with: | ||
| environment: ${{ matrix.environment }} | ||
| command: ${{ matrix.command }} | ||
| secrets: inherit | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.