Skip to content

Commit af085b6

Browse files
committed
Trying to figure out the "uses" syntax.
1 parent 2795cad commit af085b6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/run-with-reusable-steps.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
steps:
2424
- name: Use reusable steps
2525
id: reusable-steps
26-
uses: ./.github/workflows/reusable-steps.yml
26+
# uses: ./.github/workflows/reusable-steps.yml # To use this syntax, we must have the repository checked out
27+
uses: getvictor/reusable-github-actions/.github/workflows/reusable-steps.yml
2728
with:
2829
reusable_input: "job-2-input"
2930
env:

.github/workflows/run-with-reusable-workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
job-2:
1818
needs: job-1
19-
uses: ./.github/workflows/reusable-workflow.yml
19+
uses: ./.github/workflows/reusable-workflow.yml # We do not need to check out the repository to use the reusable workflow
2020
with:
2121
reusable_input: "job-2-input"
2222
secrets: # Can also implicitly pass the secrets with: secrets: inherit

0 commit comments

Comments
 (0)