Skip to content

Commit

Permalink
Update starter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
artlov authored Aug 21, 2024
1 parent 2bfc506 commit 3a52c13
Showing 1 changed file with 29 additions and 14 deletions.
43 changes: 29 additions & 14 deletions .github/workflows/starter.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,41 @@
name: Start job

# Controls when the workflow will run
on:
workflow_dispatch:
inputs:
choice:
type: choice
description: Please select the server to use
default: 'all'
options:
- all
- imsa
- imsb
# choice:
# type: choice
# description: Please select the server to use
# default: 'all'
# options:
# - all
# - imsa
# - imsb
imsa:
type: boolean
default: false
imsb:
type: boolean
default: false
service-restart:
type: boolean
description: Restart service after deploy
required: false
default: false

jobs:
call-workflow:
uses: ./.github/workflows/deploy.yml
with:
choice: ${{ inputs.choice }}
service-restart: ${{ inputs.service-restart }}
call-imsa-workflow:
if: ${{ inputs.imsa == true }}
uses: ./.github/workflows/deploy.yml
with:
choice: ${{ inputs.imsa }}
service-restart: ${{ inputs.service-restart }}

call-imsb-workflow:
if: ${{ inputs.imsb == true }}
uses: ./.github/workflows/deploy.yml
with:
choice: ${{ inputs.imsb }}
service-restart: ${{ inputs.service-restart }}


0 comments on commit 3a52c13

Please sign in to comment.