Skip to content

Commit

Permalink
test workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jacqueline-57b committed Dec 5, 2024
1 parent 76e709c commit a79a5ec
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test1.yml
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 }}
18 changes: 18 additions & 0 deletions .github/workflows/test2.yml
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 }}"

0 comments on commit a79a5ec

Please sign in to comment.