Skip to content

Commit

Permalink
Merge pull request #12 from zartashaslam/fahad
Browse files Browse the repository at this point in the history
changes
  • Loading branch information
zartashaslam authored Aug 18, 2023
2 parents 1fce508 + d87113f commit 41c14b5
Showing 1 changed file with 30 additions and 24 deletions.
54 changes: 30 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
on:
workflow_dispatch:
inputs:
es:
type: boolean
default: false
description: Use Repo 1?
dr:
type: boolean
default: false
description: Use Repo 2?

jobs:
es-job:
name: Repo 1 Job
runs-on: ubuntu-latest
if: github.event.inputs.es == 'true'
steps:
- run: echo "some repo 1 job"
workflow_dispatch:
inputs:
es:
type: boolean
default: false
description: Use Repo 1?
dr:
type: boolean
default: false
description: Use Repo 2?
environment:
description: 'Define env name dev or live'
required: true
env:
ENV: ${{ github.event.inputs.environment }}

dr-job:
name: Repo 2 Job
runs-on: ubuntu-latest
if: github.event.inputs.dr == 'true'
steps:
- run: echo "some repo 2 job"
jobs:
es-job:
name: Repo 1 Job
runs-on: ubuntu-latest
if: github.event.inputs.es == 'true'
steps:
- run: echo ${{ env.ENV }}


dr-job:
name: Repo 2 Job
runs-on: ubuntu-latest
if: github.event.inputs.dr == 'true'
steps:
- run: echo "some repo 2 job"

0 comments on commit 41c14b5

Please sign in to comment.