Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Antik9421 committed Jun 21, 2024
1 parent a9a8b1c commit 2b6c43f
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/test1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,29 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

workflow_call:
# Map the workflow outputs to job outputs
outputs:
firstword:
description: "The first output string"
value: ${{ jobs.example_job.outputs.output1 }}
secondword:
description: "The second output string"
value: ${{ jobs.example_job.outputs.output2 }}

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
test1:
# The type of runner that the job will run on
example_job:
name: Generate output
runs-on: ubuntu-latest

# Map the job outputs to step outputs
outputs:
output1: ${{ steps.step1.outputs.firstword }}
output2: ${{ steps.step2.outputs.secondword }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- id: step1
run: echo "firstword=hello" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 2b6c43f

Please sign in to comment.