gitea/templates/user/settings
sillyguodong 35a653d7ed
Support configuration variables on Gitea Actions (#24724)
Co-Author: @silverwind @wxiaoguang 
Replace: #24404

See:
- [defining configuration variables for multiple
workflows](https://docs.github.com/en/actions/learn-github-actions/variables#defining-configuration-variables-for-multiple-workflows)
- [vars
context](https://docs.github.com/en/actions/learn-github-actions/contexts#vars-context)

Related to:
- [x] protocol: https://gitea.com/gitea/actions-proto-def/pulls/7
- [x] act_runner: https://gitea.com/gitea/act_runner/pulls/157
- [x] act: https://gitea.com/gitea/act/pulls/43

#### Screenshoot
Create Variable:

![image](https://user-images.githubusercontent.com/33891828/236758288-032b7f64-44e7-48ea-b07d-de8b8b0e3729.png)


![image](https://user-images.githubusercontent.com/33891828/236758174-5203f64c-1d0e-4737-a5b0-62061dee86f8.png)

Workflow:
```yaml
  test_vars:
    runs-on: ubuntu-latest
    steps:
      - name: Print Custom Variables
        run: echo "${{ vars.test_key }}"
      - name: Try to print a non-exist var
        run: echo "${{ vars.NON_EXIST_VAR }}"
```

Actions Log:

![image](https://user-images.githubusercontent.com/33891828/236759075-af0c5950-368d-4758-a8ac-47a96e43b6e2.png)

---
This PR just implement the org / user (depends on the owner of the
current repository) and repo level variables, The Environment level
variables have not been implemented.
Because
[Environment](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#about-environments)
is a module separate from `Actions`. Maybe it would be better to create
a new PR to do it.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
2023-06-20 22:54:15 +00:00
..
security Add template linting via djlint (#25212) 2023-06-14 18:17:58 +00:00
account.tmpl Change `--font-weight-bold` to `--font-weight-semibold` and 600 value, introduce new font weight variables (#24827) 2023-05-21 23:37:32 +00:00
actions.tmpl Support configuration variables on Gitea Actions (#24724) 2023-06-20 22:54:15 +00:00
appearance.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
applications.tmpl Change access token UI to select dropdowns (#25109) 2023-06-13 15:55:48 +08:00
applications_oauth2.tmpl Allow creation of OAuth2 applications for orgs (#18084) 2022-10-09 20:07:41 +08:00
applications_oauth2_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
applications_oauth2_edit_form.tmpl Fix edit OAuth application width (#25262) 2023-06-14 17:45:13 +00:00
applications_oauth2_list.tmpl Add ability to set multiple redirect URIs in OAuth application UI (#25072) 2023-06-05 15:00:12 +08:00
grants_oauth2.tmpl Change `add_on` translation to `added_on` and include placeholder for the date (#24562) 2023-05-06 21:11:27 +08:00
hook_new.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
hooks.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
keys.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
keys_gpg.tmpl Add template linting via djlint (#25212) 2023-06-14 18:17:58 +00:00
keys_principal.tmpl Change `add_on` translation to `added_on` and include placeholder for the date (#24562) 2023-05-06 21:11:27 +08:00
keys_ssh.tmpl Improve some Forms (#24878) 2023-05-26 09:42:54 +00:00
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_head.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
navbar.tmpl Support configuration variables on Gitea Actions (#24724) 2023-06-20 22:54:15 +00:00
organization.tmpl Improve some modal action buttons (#24289) 2023-04-24 07:08:59 -04:00
packages.tmpl Add template linting via djlint (#25212) 2023-06-14 18:17:58 +00:00
packages_cleanup_rules_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
packages_cleanup_rules_preview.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
profile.tmpl Improve AJAX link and modal confirm dialog (#25210) 2023-06-13 12:10:10 +00:00
repos.tmpl Add template linting via djlint (#25212) 2023-06-14 18:17:58 +00:00
runner_edit.tmpl Add user level action runners (#24995) 2023-05-31 09:39:54 +08:00