Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
xXkoshmarikXx committed Aug 27, 2024
1 parent 9d73f64 commit 446774f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,19 @@ jobs:
uses: ./.github/actions/testing-action
with:
name: 'koshmarik'

# Job to call the composite action
call-composite-action:
call-combined-composite-action:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Run composite action
uses: ./.github/actions/print-message
- name: Run combined composite action
uses: ./.github/actions/testing-action
with:
message: "Hello from composite action!"
name: "koshmarik"
message: "Welcome to our project!"

# Job to call the reusable workflow
call-reusable-workflow:
uses: ./.github/workflows/reusable-workflow.yml
uses: .github/workflows/reusable-workflow.yml
with:
message: "Hello from reusable workflow!"
18 changes: 18 additions & 0 deletions .github/workflows/reusable-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Reusable Workflow

on:
workflow_call:
inputs:
message:
description: 'Message to print'
required: true
type: string

jobs:
print-job:
runs-on: ubuntu-latest
steps:
- name: Print the message
run: |
echo "Message: ${{ inputs.message }}"

0 comments on commit 446774f

Please sign in to comment.