Skip to content

Commit 4a6d622

Browse files
Fix misleading example of reusable workflows (github#20324)
Co-authored-by: Lucas Costi <[email protected]>
1 parent 720ee03 commit 4a6d622

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

content/actions/using-workflows/reusing-workflows.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ You can define inputs and secrets, which can be passed from the caller workflow
127127
runs-on: ubuntu-latest
128128
environment: production
129129
steps:
130-
- uses: ./.github/workflows/my-action
130+
- uses: octo-org/my-action@v1
131131
with:
132132
username: ${{ inputs.username }}
133133
token: ${{ secrets.envPAT }}
@@ -168,12 +168,13 @@ jobs:
168168
name: Pass input and secrets to my-action
169169
runs-on: ubuntu-latest
170170
steps:
171-
- uses: ./.github/workflows/my-action
171+
- uses: octo-org/my-action@v1
172172
with:
173173
username: ${{ inputs.username }}
174174
token: ${{ secrets.token }}
175175
```
176176
{% endraw %}
177+
177178
{% ifversion actions-reusable-workflow-matrix %}
178179
## Using a matrix strategy with a reusable workflow
179180

0 commit comments

Comments
 (0)