Skip to content

Commit

Permalink
Trying to figure out the "uses" syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
getvictor committed Apr 24, 2024
1 parent 2795cad commit af085b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/run-with-reusable-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
steps:
- name: Use reusable steps
id: reusable-steps
uses: ./.github/workflows/reusable-steps.yml
# uses: ./.github/workflows/reusable-steps.yml # To use this syntax, we must have the repository checked out
uses: getvictor/reusable-github-actions/.github/workflows/reusable-steps.yml
with:
reusable_input: "job-2-input"
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-with-reusable-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

job-2:
needs: job-1
uses: ./.github/workflows/reusable-workflow.yml
uses: ./.github/workflows/reusable-workflow.yml # We do not need to check out the repository to use the reusable workflow
with:
reusable_input: "job-2-input"
secrets: # Can also implicitly pass the secrets with: secrets: inherit
Expand Down

0 comments on commit af085b6

Please sign in to comment.