Skip to content

Commit

Permalink
Merge pull request #8 from zartashaslam/workflow-new-test
Browse files Browse the repository at this point in the history
changes
  • Loading branch information
zartashaslam authored Aug 17, 2023
2 parents 236c12e + 8cc8da4 commit a704e01
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,39 @@ on:
type: boolean
default: false
description: Use Repo 2?

jobs:
common-steps:
name: Common Steps
runs-on: ubuntu-latest
steps:
- name: common workflow test
run: |
echo This is my test common workflow
name: Common Steps
runs-on: ubuntu-latest
steps:
- name: common workflow test
run: |
echo This is my test common workflow
es-job:
name: Repo 1 Job
runs-on: ubuntu-latest
if: github.event.inputs.es == 'true'
if: ${{ github.event.inputs.es == 'true' }}
steps:
- extends: common-steps
- name: Common Steps
id: common
uses: ./.github/actions/common-steps
- name: Elasticsearch job
id: build-image-elasticsearch
run: |
echo Some repo 1 job
echo This is Repo 1 Job
dr-job:
name: Repo 2 Job
runs-on: ubuntu-latest
if: github.event.inputs.dr == 'true'
if: ${{ github.event.inputs.dr == 'true' }}
steps:
- extends: common-steps
- name: Common Steps
id: common
uses: ./.github/actions/common-steps
- name: Data science job
id: build-ds-data
run: |
echo Some repo 2 job
echo This is Repo 2 Job

0 comments on commit a704e01

Please sign in to comment.