You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/actions/concepts/workflows-and-actions/about-custom-actions.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Actions can run directly on a machine or in a Docker container. You can define a
33
33
34
34
## Types of actions
35
35
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).
{% 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).
Copy file name to clipboardExpand all lines: content/get-started/writing-on-github/working-with-advanced-formatting/attaching-files.md
+24-12Lines changed: 24 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,14 @@ topics:
30
30
31
31
{% endif %}
32
32
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.
34
35
35
-

36
+

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
+

36
41
37
42
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 %}
38
43
@@ -50,26 +55,33 @@ The maximum file size is:
50
55
> [!NOTE]
51
56
> 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.
52
57
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.
54
63
55
64
* PNG (`.png`)
56
65
* GIF (`.gif`)
57
66
* JPEG (`.jpg`, `.jpeg`)
58
67
{%- ifversion svg-support %}
59
68
* SVG (`.svg`)
60
69
{%- 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`)
66
71
67
72
> [!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.
69
78
70
79
* PDFs (`.pdf`)
71
-
* ZIP (`.zip`, `.gz`, `.tgz`)
72
-
* Video (`.mp4`, `.mov`, `.webm`)
80
+
* Microsoft Office documents (`.docx`, `.pptx`, `.xlsx`, `.xls`)
* Text and data files (`.txt`, `.csv`, `.log`, `.md`, `.json`, `.jsonc`)
83
+
* Archive files (`.zip`, `.gz`, `.tgz`)
84
+
* Development files (`.patch`, `.cpuprofile`, `.dmp`)
73
85
74
86
> [!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.
> 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