Skip to content

Commit 65e92d4

Browse files
authored
Merge branch 'main' into code-nav-uses-tree-sitter
2 parents 1ee02d6 + f34d32c commit 65e92d4

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

content/actions/reference/workflow-syntax-for-github-actions.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,18 @@ steps:
701701

702702
You can set the `shell` value to a template string using `command […options] {0} [..more_options]`. {% data variables.product.prodname_dotcom %} interprets the first whitespace-delimited word of the string as the command, and inserts the file name for the temporary script at `{0}`.
703703

704+
For example:
705+
706+
```yaml
707+
steps:
708+
- name: Display the environment variables and their values
709+
run: |
710+
print %ENV
711+
shell: perl {0}
712+
```
713+
714+
The command used, `perl` in this example, must be installed on the runner. For information about the software included on GitHub-hosted runners, see "[Specifications for GitHub-hosted runners](/actions/reference/specifications-for-github-hosted-runners#supported-software)."
715+
704716
#### Exit codes and error action preference
705717

706718
For built-in shell keywords, we provide the following defaults that are executed by {% data variables.product.prodname_dotcom %}-hosted runners. You should use these guidelines when running shell scripts.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
If you're not a billing manger for the organization, ask your client to have an *owner* of the organization [add you to the organization as a billing manager](/articles/adding-a-billing-manager-to-your-organization).
1+
If you're not a billing manager for the organization, ask your client to have an *owner* of the organization [add you to the organization as a billing manager](/articles/adding-a-billing-manager-to-your-organization).

0 commit comments

Comments
 (0)