From 3238bd095556e9a3b047f34f4daaef91bbc48cdc Mon Sep 17 00:00:00 2001 From: Aditya <102349844+addash418@users.noreply.github.com> Date: Wed, 22 Feb 2023 21:34:35 +0530 Subject: [PATCH] Documentation update for variables size limit (#34973) Co-authored-by: hubwriter Co-authored-by: Dylan Smith --- content/actions/learn-github-actions/variables.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/content/actions/learn-github-actions/variables.md b/content/actions/learn-github-actions/variables.md index 1d6bd4f024..a41203ba25 100644 --- a/content/actions/learn-github-actions/variables.md +++ b/content/actions/learn-github-actions/variables.md @@ -158,16 +158,22 @@ The following rules apply to configuration variable names: ### Limits for configuration variables -You can store up to 1,000 organization variables, 100 repository variables, and 100 environment variables. +You can store up to 1,000 organization variables, 500 repository variables, and 100 environment variables (per environment). The total size limit for organization and repository variables is 256 KB. A workflow created in a repository can access the following number of variables: -* All 100 repository variables. -* If the repository is assigned access to more than 100 organization variables, the workflow can only use the first 100 organization variables (sorted alphabetically by variable name). +* All 500 repository variables, if the total size of repository variables is less than 256 KB. If the total size of repository variables exceeds 256 KB, only the repository variables that fall below the limit will be available (as sorted alphabetically by variable name). +* All 1,000 environment variables, if the total combined size of repository and organization variables is less than 256 KB. If the total combined size of organization and repository variables exceeds 256 KB, only the organization variables that fall below that limit will be available (after accounting for repository variables and as sorted alphabetically by variable name). * All 100 environment variables. Variables are limited to 48 KB in size. +{% note %} + +**Note**: Environment variables do not count toward the 256 KB total size limit. If you exceed the size limit for repository and organization variables and still need additional variables, you can create an environment and define additional variables there. + +{% endnote %} + {% endif %} ## Using contexts to access variable values