diff --git a/.github/workflows/python-installation.yml b/.github/workflows/python-installation.yml index eeb8ac21..fa97810c 100644 --- a/.github/workflows/python-installation.yml +++ b/.github/workflows/python-installation.yml @@ -2,12 +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 }}' + +# - 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 + jobs: - build: + job1: + runs-on: ubuntu-latest + # Map a step output to a job output + outputs: + step1_output: ${{ steps.step1.outputs.MyVar }} + step2_output: ${{ steps.step2.outputs.MySecret }} + steps: + - id: step1 + run: echo "MyVar=hello world." >> "$GITHUB_OUTPUT" + - id: step2 + run: echo "MySecret=Welcome to GitHub Actions !!" >> "$GITHUB_OUTPUT" + job2: runs-on: ubuntu-latest + needs: job1 steps: - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: 3.7 - \ No newline at end of file + - env: + OUTPUT1: ${{needs.job1.outputs.step1_output}} + OUTPUT2: ${{needs.job1.outputs.step2_output}} + run: echo "$OUTPUT1 $OUTPUT2" +