reference action output in another step #7
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
| on: push | |
| jobs: | |
| hello-world: | |
| runs-on: ubuntu-latest | |
| name: Say hello | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Print hello world | |
| id: hello | |
| uses: ./ | |
| with: | |
| who-to-greet: 'Hunter' | |
| - name: Print time | |
| run: echo "The time was ${{ steps.hello.outputs.time }} |