Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.47 KB

File metadata and controls

50 lines (37 loc) · 1.47 KB

Configuring repository variables

Note

This section can be applied to repos/<file>.yml or suborgs/<file>.yml. It will most commonly appear in the individual repos though.

Example variable definition

# These settings are synced to GitHub by https://github.com/github/safe-settings
variables:
  - name: MY_AWESOME_VAR
    value: '845705'
  - name: my_lowercase_var
    value: I have spaces

Repository Variable API Spec

Tip

GitHub's API documentation defines these inputs and types:

  1. Update a repository variable

variablesarray of objects

Repository variables that can be referenced in a GitHub Actions workflow

Properties of variables

namestring${\text{\color{orange}Required}}$

  The name of the variable.

valuestring${\text{\color{orange}Required}}$

  The value of the variable.

Example:
variables:
  - name: MY_AWESOME_VAR
    value: super duper value
...