-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76e709c
commit a79a5ec
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: First Workflow | ||
|
||
on: | ||
workflow_dispatch: # This allows you to manually trigger the workflow | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Generate Output | ||
id: generate_output | ||
run: | | ||
OUTPUT_VALUE="jacqueline-test-1" | ||
echo "OUTPUT_VALUE=${OUTPUT_VALUE}" >> $GITHUB_ENV | ||
echo "::set-output name=generated_value::${OUTPUT_VALUE}" | ||
outputs: | ||
generated_value: ${{ steps.generate_output.outputs.generated_value }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Second Workflow | ||
|
||
on: | ||
workflow_dispatch: # This allows you to manually trigger the workflow | ||
|
||
jobs: | ||
run_first_workflow: | ||
name: Run First Workflow | ||
uses: jacqueline-57b/hub-perf-test/.github/workflows/test1.yml@main | ||
|
||
|
||
use_output: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Access Output from First Workflow | ||
run: | | ||
echo "The generated value from the first workflow is: ${{ github.event.workflow_run.outputs.generated_value }}" |