Skip to content

Commit d74f422

Browse files
authored
Merge pull request #39216 from github/repo-sync
Repo sync
2 parents 7815962 + 967b612 commit d74f422

File tree

7 files changed

+32
-22
lines changed

7 files changed

+32
-22
lines changed
78.9 KB
Loading
81.1 KB
Loading

content/actions/concepts/workflows-and-actions/about-custom-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Actions can run directly on a machine or in a Docker container. You can define a
3333

3434
## Types of actions
3535

36-
You can build Docker container, JavaScript, and composite actions. Actions require a metadata file to define the inputs, outputs and main entrypoint for your action. The metadata filename must be `action.yml`. For more information, see [AUTOTITLE](/actions/creating-actions/metadata-syntax-for-github-actions).
36+
{% data reusables.actions.types-of-actions %}
3737

3838
{% rowheaders %}
3939

content/actions/reference/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ children:
1313
- /variables-reference
1414
- /evaluate-expressions-in-workflows-and-actions
1515
- /contexts-reference
16-
- /metadata-syntax-for-github-actions
16+
- /metadata-syntax-reference
1717
- /actions-limits
1818
- /dockerfile-support-for-github-actions
1919
- /supported-architectures-and-operating-systems-for-self-hosted-runners

content/actions/reference/metadata-syntax-for-github-actions.md renamed to content/actions/reference/metadata-syntax-reference.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Metadata syntax for GitHub Actions
2+
title: Metadata syntax reference
33
shortTitle: Metadata syntax
44
intro: You can create actions to perform tasks in your repository. Actions require a metadata file that uses YAML syntax.
55
redirect_from:
@@ -9,20 +9,16 @@ redirect_from:
99
- /actions/building-actions/metadata-syntax-for-github-actions
1010
- /actions/creating-actions/metadata-syntax-for-github-actions
1111
- /actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions
12+
- /actions/reference/metadata-syntax-for-github-actions
1213
versions:
1314
fpt: '*'
1415
ghes: '*'
1516
ghec: '*'
1617
type: reference
18+
allowTitleToDifferFromFilename: true
1719
---
1820

19-
{% data reusables.actions.enterprise-github-hosted-runners %}
20-
21-
## About YAML syntax for {% data variables.product.prodname_actions %}
22-
23-
All actions require a metadata file. The metadata filename must be either `action.yml` or `action.yaml`. The preferred format is `action.yml`. The data in the metadata file defines the inputs, outputs, and runs configuration for your action.
24-
25-
Action metadata files use YAML syntax. If you're new to YAML, you can read [Learn YAML in five minutes](https://www.codeproject.com/Articles/1214409/Learn-YAML-in-five-minutes).
21+
{% data reusables.actions.types-of-actions %}
2622

2723
## `name`
2824

content/get-started/writing-on-github/working-with-advanced-formatting/attaching-files.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,14 @@ topics:
3030
3131
{% endif %}
3232

33-
To attach a file to an issue or pull request conversation, drag and drop it into the comment box. Alternatively, you can click {% octicon "paperclip" aria-label="Attach files" %} in the formatting bar above the comment box to browse, select, and add a file from your computer.
33+
To attach a file to an issue or pull request conversation, drag and drop it into the comment box.
34+
Alternatively, you can click {% octicon "paperclip" aria-label="Attach files" %} below the issue comment box to browse, select, and add a file from your computer.
3435

35-
![Screenshot of the comment box. The "Attach files" icon is outlined in orange.](/assets/images/help/issues/attach-file-icon.png)
36+
![Screenshot of the issue comment box. The "Attach files" icon is outlined in orange.](/assets/images/help/issues/attach-file.png)
37+
38+
For a pull request, you can also click {% octicon "paperclip" aria-label="Attach files" %} in the formatting bar above the pull request comment box.
39+
40+
![Screenshot of the pull request comment box. The "Attach files" icon is outlined in orange.](/assets/images/help/pull_requests/attach-file.png)
3641

3742
When you attach a file, it is uploaded immediately to {% data variables.product.github %} and the text field is updated to show the anonymized URL for the file. {% ifversion fpt or ghec %}For more information on anonymized URLs see [AUTOTITLE](/authentication/keeping-your-account-and-data-secure/about-anonymized-urls).{% endif %}
3843

@@ -50,26 +55,33 @@ The maximum file size is:
5055
> [!NOTE]
5156
> To upload videos greater than 10MB to a repository owned by a user or organization on a paid {% data variables.product.prodname_dotcom %} plan, you must either be an organization member or outside collaborator, or be on a paid plan.
5257
53-
We support these files:
58+
## Supported file types
59+
60+
### Image and media files
61+
62+
The following image and media file types are supported in all contexts.
5463

5564
* PNG (`.png`)
5665
* GIF (`.gif`)
5766
* JPEG (`.jpg`, `.jpeg`)
5867
{%- ifversion svg-support %}
5968
* SVG (`.svg`)
6069
{%- endif %}
61-
* Log files (`.log`)
62-
* Markdown files (`.md`)
63-
* Microsoft Word (`.docx`), PowerPoint (`.pptx`), and Excel (`.xlsx`) documents
64-
* Text files (`.txt`)
65-
* Patch files (`.patch`)
70+
* Video (`.mp4`, `.mov`, `.webm`)
6671

6772
> [!NOTE]
68-
> If you use Linux and try to upload a `.patch` file, you will receive an error message. This is a known issue.
73+
> Video codec compatibility is browser specific, and it's possible that a video you upload to one browser is not viewable on another browser. At the moment we recommend using H.264 for greatest compatibility.
74+
75+
### Additional file types
76+
77+
The following file types are supported when uploading to issue and pull request comments in repositories.
6978

7079
* PDFs (`.pdf`)
71-
* ZIP (`.zip`, `.gz`, `.tgz`)
72-
* Video (`.mp4`, `.mov`, `.webm`)
80+
* Microsoft Office documents (`.docx`, `.pptx`, `.xlsx`, `.xls`)
81+
* OpenDocument formats (`.odt`, `.fodt`, `.ods`, `.fods`, `.odp`, `.fodp`, `.odg`, `.fodg`, `.odf`)
82+
* Text and data files (`.txt`, `.csv`, `.log`, `.md`, `.json`, `.jsonc`)
83+
* Archive files (`.zip`, `.gz`, `.tgz`)
84+
* Development files (`.patch`, `.cpuprofile`, `.dmp`)
7385

7486
> [!NOTE]
75-
> Video codec compatibility is browser specific, and it's possible that a video you upload to one browser is not viewable on another browser. At the moment we recommend using H.264 for greatest compatibility.
87+
> If you use Linux and try to upload a `.patch` file, you will receive an error message. This is a known issue.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
>[!NOTE]
2+
> You can build Docker container, JavaScript, and composite actions. Actions require a metadata file to define the inputs, outputs, and runs configuration for your action. Action metadata files use YAML syntax, and the metadata filename must be either `action.yml` or `action.yaml`. The preferred format is `action.yml`.

0 commit comments

Comments
 (0)