Skip to content

Commit

Permalink
Update db-backup workflow to include environment input
Browse files Browse the repository at this point in the history
  • Loading branch information
pdcp1 committed Sep 3, 2024
1 parent b953c48 commit a889f57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/db-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@ on:
schedule:
- cron: "0 10 * * 1" # At 10:00 on Monday.
workflow_dispatch:
inputs:
environment:
description: The Github environment to load secrets from
type: string
required: true

defaults:
run:
shell: bash

jobs:
build-and-run-backups:
# If the execution is triggered by a schedule, the environment is production
environment: ${{ inputs.environment || 'production' }}
name: Backup
runs-on: ubuntu-latest

Expand Down

0 comments on commit a889f57

Please sign in to comment.