Reuse other workflow #4
This file contains 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: Reuse other workflow | |
on: | |
workflow_dispatch: | |
jobs: | |
call-workflow: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Call reusable workflow | |
uses: ./.github/workflows/reusable.yml | |
with: | |
who-to-greet: ${{ github.actor }} | |
use-output: | |
runs-on: ubuntu-latest | |
needs: call-workflow | |
steps: | |
- run: echo "The time we greeted Alice was ${{ needs.call-workflow.outputs.current-time }}" |