From a947d29bf36495b5f331526040782593a482d75c Mon Sep 17 00:00:00 2001 From: Zartash Aslam Date: Thu, 17 Aug 2023 22:05:15 +0500 Subject: [PATCH 1/5] changes --- .github/workflows/test.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ede51af..77e51c7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,15 +22,25 @@ jobs: runs-on: ubuntu-latest if: github.event.inputs.es == 'true' steps: - - extends: common-steps - run: | - echo Some repo 1 job + - name: Common Steps + id: common + uses: ./.github/actions/common-steps + + - name: Elasticsearch job + id: build-image-elasticsearch + run: | + echo This is Repo 1 Job dr-job: name: Repo 2 Job runs-on: ubuntu-latest if: github.event.inputs.dr == 'true' steps: - - extends: common-steps - run: | - echo Some repo 2 job \ No newline at end of file + - name: Common Steps + id: common + uses: ./.github/actions/common-steps + + - name: Data scinec job + id: build-ds-data + run: | + echo This is Repo 2 Job \ No newline at end of file From 782f5273f78a9572ad6fa8e8b17ce63b0063cadd Mon Sep 17 00:00:00 2001 From: Zartash Aslam Date: Thu, 17 Aug 2023 22:07:13 +0500 Subject: [PATCH 2/5] new changes --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 77e51c7..4aa9745 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,7 +39,7 @@ jobs: - name: Common Steps id: common uses: ./.github/actions/common-steps - + - name: Data scinec job id: build-ds-data run: | From 0da4e5345c54657d0f4038014e4fb21a4e030174 Mon Sep 17 00:00:00 2001 From: Zartash Aslam Date: Thu, 17 Aug 2023 22:09:01 +0500 Subject: [PATCH 3/5] new changes 2 --- .github/workflows/test.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4aa9745..b0a6eb4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,38 +9,41 @@ on: type: boolean default: false description: Use Repo 2? -jobs: + + 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: - name: Common Steps id: common uses: ./.github/actions/common-steps - + - name: Elasticsearch job id: build-image-elasticsearch run: | 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: - name: Common Steps id: common uses: ./.github/actions/common-steps - - - name: Data scinec job + + - name: Data science job id: build-ds-data run: | - echo This is Repo 2 Job \ No newline at end of file + echo This is Repo 2 Job + \ No newline at end of file From ab7ae6241fa6277644171d52a8c0820173418cff Mon Sep 17 00:00:00 2001 From: Zartash Aslam Date: Thu, 17 Aug 2023 22:09:44 +0500 Subject: [PATCH 4/5] new changes 3 --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b0a6eb4..6f9990b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,8 +9,8 @@ on: type: boolean default: false description: Use Repo 2? - - jobs: + +jobs: common-steps: name: Common Steps runs-on: ubuntu-latest From 8cc8da402a749959c158f6309b0679312a4904b9 Mon Sep 17 00:00:00 2001 From: Zartash Aslam Date: Thu, 17 Aug 2023 22:11:17 +0500 Subject: [PATCH 5/5] new changes 4 --- .github/workflows/test.yml | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f9990b..aae7cb6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,35 +15,33 @@ jobs: name: Common Steps runs-on: ubuntu-latest steps: - - name: common workflow test + - 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' }} steps: - - name: Common Steps - id: common - uses: ./.github/actions/common-steps - - - name: Elasticsearch job - id: build-image-elasticsearch - run: | - echo This is Repo 1 Job - + - name: Common Steps + id: common + uses: ./.github/actions/common-steps + - name: Elasticsearch job + id: build-image-elasticsearch + run: | + echo This is Repo 1 Job + dr-job: name: Repo 2 Job runs-on: ubuntu-latest if: ${{ github.event.inputs.dr == 'true' }} steps: - - name: Common Steps - id: common - uses: ./.github/actions/common-steps - - - name: Data science job - id: build-ds-data - run: | - echo This is Repo 2 Job + - name: Common Steps + id: common + uses: ./.github/actions/common-steps + - name: Data science job + id: build-ds-data + run: | + echo This is Repo 2 Job \ No newline at end of file