Add GitHub Actions workflow for Or Condition demo #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Morning Output demo | |
| on: push | |
| jobs: | |
| build: | |
| name: prints the outputs | |
| outputs: | |
| outputs: ${{ steps.step1.outputs.versionoir }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: step one | |
| id: step1 | |
| run: echo "versionoir=0.0.1" >> $GITHUB_OUTPUT | |
| - name: step two | |
| run: echo "This version is ${{ steps.step1.outputs.versionoir }}" | |
| - name: firstworld | |
| id: step3 | |
| run: echo "firstworld=hello" >> $GITHUB_OUTPUT | |
| - name: secondworld | |
| run: echo "${{ steps.step3.outputs.firstworld }}" | |