-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update reusable workflow to use correct path for hello-world-s…
…hared.yml
- Loading branch information
1 parent
d984549
commit f5ee588
Showing
1 changed file
with
27 additions
and
6 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 |
---|---|---|
@@ -1,12 +1,33 @@ | ||
name: Reusable Workflow 1 | ||
# Workflow Name | ||
name: Trigger Reusable Workflow | ||
|
||
# Trigger Events | ||
on: | ||
# Run when changes are pushed to the 'main' branch | ||
push: | ||
branches: | ||
- main | ||
|
||
# Allow manual triggering through the GitHub Actions UI | ||
workflow_dispatch: | ||
|
||
# Jobs to Execute | ||
jobs: | ||
trigger_hello_world: | ||
runs-on: ubuntu-latest | ||
# Call Reusable Workflow Job | ||
call_reusable_workflow: | ||
# Use the official 'reusable workflow' action | ||
uses: github/workflows/call-reusable-workflow@v1 | ||
|
||
# Workflow Configuration | ||
with: | ||
# Organization name containing the reusable workflow | ||
owner: timothywarner-org | ||
# Repository containing the reusable workflow | ||
repo: actions-cert-prep | ||
# Path and name of the reusable workflow file | ||
workflow_file_name: .github/workflows/reusable-workflow1.yml | ||
|
||
steps: | ||
- name: Trigger Hello World Workflow | ||
uses: timothywarner-org/.github/workflow-templates/hello-world-shared.yml@main | ||
# Optional: Pass input values to the reusable workflow | ||
# In this case, we pass the organization and template name to the reusable workflow | ||
ref: main | ||
inputs: '{"org": "timothywarner-org", "template": ".github/workflow-templates/hello-world-shared.yml"}' |