From c9186d07c3681362b9707d6a88f8678cee8ab3b1 Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Tue, 15 Feb 2022 10:57:52 +1100 Subject: [PATCH] Use valid reusable workflow paths in example yml The docs currently state: > Reusable workflows are YAML-formatted files, very similar to any other workflow file. As with other workflow files, you locate reusable workflows in the `.github/workflows` directory of a repository. Subdirectories of the `workflows` directory are not supported. But the example yml then presents the path `uses: ./.github/actions/my-action` which doesn't follow the initial advice about location of workflow files. Change is to use `uses: ./.github/workflows/my-action` to make example valid, but this is assuming the `Creating a reusable workflow` section is also accurate. --- content/actions/using-workflows/reusing-workflows.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/actions/using-workflows/reusing-workflows.md b/content/actions/using-workflows/reusing-workflows.md index bb93f2df340d..cb6cb0c668a1 100644 --- a/content/actions/using-workflows/reusing-workflows.md +++ b/content/actions/using-workflows/reusing-workflows.md @@ -112,7 +112,7 @@ You can define inputs and secrets, which can be passed from the caller workflow runs-on: ubuntu-latest environment: production steps: - - uses: ./.github/actions/my-action + - uses: ./.github/workflows/my-action with: username: ${{ inputs.username }} token: ${{ secrets.envPAT }} @@ -153,7 +153,7 @@ jobs: name: Pass input and secrets to my-action runs-on: ubuntu-latest steps: - - uses: ./.github/actions/my-action + - uses: ./.github/workflows/my-action with: username: ${{ inputs.username }} token: ${{ secrets.token }}