Skip to content

Commit

Permalink
QA-5485 scheduled job in yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kbo001 committed Jan 12, 2024
1 parent 7204a82 commit 2318edc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/es-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
repository_dispatch:
types: [ deploy_success ]
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
inputs:
environment:
Expand All @@ -25,12 +25,8 @@ jobs:
set_matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix-deploy.outputs.matrix || steps.set-matrix-manual.outputs.matrix || steps.set-matrix-default.outputs.matrix }}
matrix: ${{ steps.set-matrix-manual.outputs.matrix || steps.set-matrix-default.outputs.matrix }}
steps:
- id: set-matrix-deploy
if: ${{ github.event_name == 'repository_dispatch' }}
run: |
echo "::set-output name=matrix::{\"environment\": [\"${{ github.event.client_payload.environment }}\"]}"
- id: set-matrix-manual
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
Expand Down

0 comments on commit 2318edc

Please sign in to comment.