From b1a95d51235f5ed7061073e8eea39bfd328f65d8 Mon Sep 17 00:00:00 2001 From: itsabhinav2010 <49388084+itsabhinav2010@users.noreply.github.com> Date: Sat, 6 Jul 2024 21:52:41 +0530 Subject: [PATCH 1/7] Update python-installation.yml --- .github/workflows/python-installation.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-installation.yml b/.github/workflows/python-installation.yml index eeb8ac21..399215dc 100644 --- a/.github/workflows/python-installation.yml +++ b/.github/workflows/python-installation.yml @@ -4,10 +4,20 @@ on: [push] jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + os: + - ubuntu-latest + - macos-12 + - windows-latest + py-version: + - 3.7 + - 3.8 + - 3.9 + runs-on: '${{ matrix.os }}' steps: - name: Set up Python uses: actions/setup-python@v4 with: python-version: 3.7 - \ No newline at end of file + From 7560a361beefa56719ec1d87e655b877d458142f Mon Sep 17 00:00:00 2001 From: itsabhinav2010 <49388084+itsabhinav2010@users.noreply.github.com> Date: Sat, 6 Jul 2024 21:53:45 +0530 Subject: [PATCH 2/7] Update python-installation.yml --- .github/workflows/python-installation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-installation.yml b/.github/workflows/python-installation.yml index 399215dc..ca3b94a0 100644 --- a/.github/workflows/python-installation.yml +++ b/.github/workflows/python-installation.yml @@ -19,5 +19,5 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: '${{ matrix.py-version }}' From b70e0acf987e4e49686a42ed802067dfb1b496ce Mon Sep 17 00:00:00 2001 From: itsabhinav2010 <49388084+itsabhinav2010@users.noreply.github.com> Date: Sat, 6 Jul 2024 21:57:00 +0530 Subject: [PATCH 3/7] Update python-installation.yml --- .github/workflows/python-installation.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/python-installation.yml b/.github/workflows/python-installation.yml index ca3b94a0..e2a4bc12 100644 --- a/.github/workflows/python-installation.yml +++ b/.github/workflows/python-installation.yml @@ -14,6 +14,9 @@ jobs: - 3.7 - 3.8 - 3.9 + exclude: #added + - os: macos-12 #added + py-version: 3.9 #added runs-on: '${{ matrix.os }}' steps: - name: Set up Python From cdaa823a6bf52d74d5cbc0fc76d41f4706053ef3 Mon Sep 17 00:00:00 2001 From: itsabhinav2010 <49388084+itsabhinav2010@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:03:54 +0530 Subject: [PATCH 4/7] Update python-installation.yml --- .github/workflows/python-installation.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/python-installation.yml b/.github/workflows/python-installation.yml index e2a4bc12..90cfb17b 100644 --- a/.github/workflows/python-installation.yml +++ b/.github/workflows/python-installation.yml @@ -24,3 +24,13 @@ jobs: with: python-version: '${{ matrix.py-version }}' + - uses: actions/checkout@v4.1.1 + + - run: | + issue_title="${{ github.event.issue.title }}" + if [[ "$issue_title" == *"bug"* ]]; then + echo "Issue is about a bug!" + else + echo "Issue is not about a bug" + fi + From 65c5f43fe60a0085c88f6276d3d950d0d2e8a5db Mon Sep 17 00:00:00 2001 From: itsabhinav2010 <49388084+itsabhinav2010@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:04:48 +0530 Subject: [PATCH 5/7] Update python-installation.yml --- .github/workflows/python-installation.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-installation.yml b/.github/workflows/python-installation.yml index 90cfb17b..fcb2808c 100644 --- a/.github/workflows/python-installation.yml +++ b/.github/workflows/python-installation.yml @@ -8,15 +8,15 @@ jobs: matrix: os: - ubuntu-latest - - macos-12 - - windows-latest + #- macos-12 + #- windows-latest py-version: - 3.7 - 3.8 - 3.9 - exclude: #added - - os: macos-12 #added - py-version: 3.9 #added + # exclude: #added + # - os: macos-12 #added + # py-version: 3.9 #added runs-on: '${{ matrix.os }}' steps: - name: Set up Python From cb7e1e2ec7151c53a3f810a7205ec93ea13bad03 Mon Sep 17 00:00:00 2001 From: itsabhinav2010 <49388084+itsabhinav2010@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:25:26 +0530 Subject: [PATCH 6/7] Update python-installation.yml --- .github/workflows/python-installation.yml | 79 ++++++++++++++--------- 1 file changed, 50 insertions(+), 29 deletions(-) diff --git a/.github/workflows/python-installation.yml b/.github/workflows/python-installation.yml index fcb2808c..9c915e68 100644 --- a/.github/workflows/python-installation.yml +++ b/.github/workflows/python-installation.yml @@ -2,35 +2,56 @@ name: Installing Python on: [push] -jobs: - build: - strategy: - matrix: - os: - - ubuntu-latest - #- macos-12 - #- windows-latest - py-version: - - 3.7 - - 3.8 - - 3.9 - # exclude: #added - # - os: macos-12 #added - # py-version: 3.9 #added - runs-on: '${{ matrix.os }}' - steps: - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '${{ matrix.py-version }}' +# jobs: +# build: +# strategy: +# matrix: +# os: +# - ubuntu-latest +# #- macos-12 +# #- windows-latest +# py-version: +# - 3.7 +# - 3.8 +# - 3.9 +# # exclude: #added +# # - os: macos-12 #added +# # py-version: 3.9 #added +# runs-on: '${{ matrix.os }}' +# steps: +# - name: Set up Python +# uses: actions/setup-python@v4 +# with: +# python-version: '${{ matrix.py-version }}' - - uses: actions/checkout@v4.1.1 +# - uses: actions/checkout@v4.1.1 + +# - run: | +# issue_title="${{ github.event.issue.title }}" +# if [[ "$issue_title" == *"bug"* ]]; then +# echo "Issue is about a bug!" +# else +# echo "Issue is not about a bug" +# fi - - run: | - issue_title="${{ github.event.issue.title }}" - if [[ "$issue_title" == *"bug"* ]]; then - echo "Issue is about a bug!" - else - echo "Issue is not about a bug" - fi +jobs: + job1: + runs-on: ubuntu-latest + # Map a step output to a job output + outputs: + output1: ${{ steps.step1.outputs.test }} + output2: ${{ steps.step2.outputs.test }} + steps: + - id: step1 + run: echo "test=hello" >> "$GITHUB_OUTPUT" + - id: step2 + run: echo "test=world" >> "$GITHUB_OUTPUT" + job2: + runs-on: ubuntu-latest + needs: job1 + steps: + - env: + OUTPUT1: ${{needs.job1.outputs.output1}} + OUTPUT2: ${{needs.job1.outputs.output2}} + run: echo "$OUTPUT1 $OUTPUT2" From 09a00b457a59ef3070a2dc1f89116106e493e5e9 Mon Sep 17 00:00:00 2001 From: itsabhinav2010 <49388084+itsabhinav2010@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:27:46 +0530 Subject: [PATCH 7/7] Update python-installation.yml --- .github/workflows/python-installation.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-installation.yml b/.github/workflows/python-installation.yml index 9c915e68..fa97810c 100644 --- a/.github/workflows/python-installation.yml +++ b/.github/workflows/python-installation.yml @@ -39,19 +39,19 @@ jobs: runs-on: ubuntu-latest # Map a step output to a job output outputs: - output1: ${{ steps.step1.outputs.test }} - output2: ${{ steps.step2.outputs.test }} + step1_output: ${{ steps.step1.outputs.MyVar }} + step2_output: ${{ steps.step2.outputs.MySecret }} steps: - id: step1 - run: echo "test=hello" >> "$GITHUB_OUTPUT" + run: echo "MyVar=hello world." >> "$GITHUB_OUTPUT" - id: step2 - run: echo "test=world" >> "$GITHUB_OUTPUT" + run: echo "MySecret=Welcome to GitHub Actions !!" >> "$GITHUB_OUTPUT" job2: runs-on: ubuntu-latest needs: job1 steps: - env: - OUTPUT1: ${{needs.job1.outputs.output1}} - OUTPUT2: ${{needs.job1.outputs.output2}} + OUTPUT1: ${{needs.job1.outputs.step1_output}} + OUTPUT2: ${{needs.job1.outputs.step2_output}} run: echo "$OUTPUT1 $OUTPUT2"