You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/repo
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>
2 years ago
..
actions Adjust style for action run list (align icons, adjust padding) (#25170) 2 years ago
branch Improve AJAX link and modal confirm dialog (#25210) 2 years ago
cite Button and color enhancements (#24989) 2 years ago
diff Add template linting via djlint (#25212) 2 years ago
editor Add template linting via djlint (#25212) 2 years ago
find Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
graph Improve commit date in commit graph (#24399) 2 years ago
issue Fix issue filters on mobile view (#25368) 2 years ago
migrate Improve some Forms (#24878) 2 years ago
projects Fix UI on mobile view (#25315) 2 years ago
pulls Make diff view full width again (#24598) 2 years ago
release Button and color enhancements (#24989) 2 years ago
settings Support configuration variables on Gitea Actions (#24724) 2 years ago
tag RSS icon fixes (#24476) 2 years ago
wiki Fix some UI alignments (#25277) 2 years ago
activity.tmpl Fix UI on mobile view (#25315) 2 years ago
blame.tmpl Add template linting via djlint (#25212) 2 years ago
branch_dropdown.tmpl Make Issue/PR/projects more compact, misc CSS tweaks (#24459) 2 years ago
clone_buttons.tmpl Rework button coloring, add focus and active colors (#24507) 2 years ago
clone_script.tmpl Rework button coloring, add focus and active colors (#24507) 2 years ago
commit_page.tmpl Add template linting via djlint (#25212) 2 years ago
commit_status.tmpl Use different SVG for pending and running actions (#23836) 2 years ago
commit_statuses.tmpl Button and color enhancements (#24989) 2 years ago
commits.tmpl Fix some UI alignments (#25277) 2 years ago
commits_list.tmpl Add template linting via djlint (#25212) 2 years ago
commits_list_small.tmpl Use flex to align SVG and text (#25163) 2 years ago
commits_table.tmpl Use data-tooltip-content for tippy tooltip (#23649) 2 years ago
create.tmpl Improve some Forms (#24878) 2 years ago
create_helper.tmpl
empty.tmpl Fix UI on mobile view (#25315) 2 years ago
file_info.tmpl Show if File is Executable (#25287) 2 years ago
forks.tmpl Remove fomantic ".link" selector and styles (#23888) 2 years ago
graph.tmpl Replace remaining fontawesome dropdown icons with SVG (#24455) 2 years ago
header.tmpl Add template linting via djlint (#25212) 2 years ago
home.tmpl When viewing a file, hide the add button (#25320) 2 years ago
icon.tmpl Move helpers to be prefixed with `gt-` (#22879) 2 years ago
packages.tmpl
release_tag_header.tmpl Use flex to align SVG and text (#25163) 2 years ago
search.tmpl Use data-tooltip-content for tippy tooltip (#23649) 2 years ago
search_name.tmpl Clean template/helper.go (#23922) 2 years ago
shabox_badge.tmpl Fix shabox regression (#22924) 2 years ago
sub_menu.tmpl Change `--font-weight-bold` to `--font-weight-semibold` and 600 value, introduce new font weight variables (#24827) 2 years ago
unicode_escape_prompt.tmpl Convert `<div class="button">` to `<button class="button">` (#23337) 2 years ago
upload.tmpl
user_cards.tmpl Change `join_on` translation to `joined_on` and include placeholder for the date (#24550) 2 years ago
view_file.tmpl Button and color enhancements (#24989) 2 years ago
view_list.tmpl Rework notifications list (#24812) 2 years ago
watchers.tmpl Fix user-cards format (#24428) 2 years ago