Run Github Actions jobs #3
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
| ### github-actions-jobs-01.yml | |
| name: Test Github Actions jobs-01 | |
| run-name: Run Github Actions jobs | |
| on: | |
| push | |
| jobs: | |
| job1: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - id: step1 | |
| run: echo "word=GitHub" >> $GITHUB_OUTPUT | |
| - id: step2 | |
| run: echo "word=Actions" >> $GITHUB_OUTPUT | |
| outputs: | |
| word1: ${{ steps.step1.outputs.word }} | |
| word2: ${{ steps.step2.outputs.word }} | |
| job2: | |
| runs-on: ubuntu-latest | |
| needs: job1 | |
| steps: | |
| - run: echo "${{ needs.job1.outputs.word1 }}" | |
| - run: echo "${{ needs.job1.outputs.word2 }}" |