Skip to content

Commit 06ba9dd

Browse files
Update reusing-workflows.md (#26519)
Co-authored-by: hubwriter <hubwriter@github.com>
1 parent 1c60e2a commit 06ba9dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ When you call a reusable workflow, you can only use the following keywords in th
265265

266266
- If `jobs.<job_id>.permissions` is not specified in the calling job, the called workflow will have the default permissions for the `GITHUB_TOKEN`. For more information, see "[AUTOTITLE](/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token)."
267267
- The `GITHUB_TOKEN` permissions passed from the caller workflow can be only downgraded (not elevated) by the called workflow.
268+
- If you use `jobs.<job_id>.concurrency.cancel-in-progress: true`, don't use the same value for `jobs.<job_id>.concurrency.group` in the called and caller workflows as this will cause the workflow that's already running to be cancelled. A called workflow uses the name of its caller workflow in {% raw %}${{ github.workflow }}{% endraw %}, so using this context as the value of `jobs.<job_id>.concurrency.group` in both caller and called workflows will cause the caller workflow to be cancelled when the called workflow runs.
268269

269270
{% endnote %}
270271

0 commit comments

Comments
 (0)