Skip to content

Commit

Permalink
Deploy to pre-prod after updating master
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Gieringer <78054+carlgieringer@users.noreply.github.com>
  • Loading branch information
carlgieringer committed Jul 27, 2024
1 parent 6aac785 commit 64138f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy-preprod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Deploy to preprod
concurrency: preprod

on:
workflow_run:
workflows: ["CI"]
types: [completed]
branches: [master]
schedule:
# Run every day at 9:45 AM UTC
- cron: "45 9 * * *"
Expand All @@ -17,6 +21,10 @@ env:

jobs:
deployment:
# Only deploy if:
# - CI was based on a successful push or pull_request (to master) or
# - if it's a manual trigger.
if: ${{ (github.event.workflow_run.event == 'push' || github.event.workflow_run.event == 'pull_request') && github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
environment: preprod
steps:
Expand Down

0 comments on commit 64138f1

Please sign in to comment.