mirror of https://github.com/go-gitea/gitea.git
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.
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:   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:  --- 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 | |
---|---|---|
.. | ||
admin | 2 years ago | |
comp | 2 years ago | |
captcha.js | 2 years ago | |
citation.js | 2 years ago | |
clipboard.js | 2 years ago | |
codeeditor.js | 2 years ago | |
colorpicker.js | 2 years ago | |
common-global.js | 2 years ago | |
common-issue-list.js | 2 years ago | |
common-issue-list.test.js | 2 years ago | |
common-organization.js | 2 years ago | |
contextpopup.js | 2 years ago | |
copycontent.js | 2 years ago | |
dropzone.js | 2 years ago | |
emoji.js | 2 years ago | |
eventsource.sharedworker.js | 3 years ago | |
file-fold.js | 2 years ago | |
heatmap.js | 2 years ago | |
imagediff.js | 2 years ago | |
install.js | 2 years ago | |
notification.js | 2 years ago | |
org-team.js | 2 years ago | |
pull-view-file.js | 2 years ago | |
repo-branch.js | 2 years ago | |
repo-code.js | 2 years ago | |
repo-code.test.js | 2 years ago | |
repo-commit.js | 2 years ago | |
repo-common.js | 2 years ago | |
repo-diff-filetree.js | 2 years ago | |
repo-diff.js | 2 years ago | |
repo-editor.js | 2 years ago | |
repo-findfile.js | 2 years ago | |
repo-findfile.test.js | 2 years ago | |
repo-graph.js | 2 years ago | |
repo-home.js | 2 years ago | |
repo-issue-content.js | 2 years ago | |
repo-issue-list.js | 2 years ago | |
repo-issue-pr-form.js | 2 years ago | |
repo-issue.js | 2 years ago | |
repo-legacy.js | 2 years ago | |
repo-migrate.js | 2 years ago | |
repo-migration.js | 2 years ago | |
repo-projects.js | 2 years ago | |
repo-release.js | 2 years ago | |
repo-settings.js | 2 years ago | |
repo-template.js | 2 years ago | |
repo-unicode-escape.js | 2 years ago | |
repo-wiki.js | 2 years ago | |
sshkey-helper.js | 3 years ago | |
stopwatch.js | 2 years ago | |
tablesort.js | 2 years ago | |
tribute.js | 2 years ago | |
user-auth-webauthn.js | 2 years ago | |
user-auth.js | 2 years ago | |
user-settings.js | 2 years ago |