Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
|
1 year ago |
.. |
admin
|
Show OAuth2 errors to end users (#25261)
|
1 year ago |
comp
|
Batch delete issue and improve tippy opts (#25253)
|
1 year ago |
captcha.js
|
Add new captcha: cloudflare turnstile (#22369)
|
2 years ago |
citation.js
|
Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198)
|
2 years ago |
clipboard.js
|
Use clippie module to copy to clipboard (#23801)
|
2 years ago |
codeeditor.js
|
Improve "goto issue by number" button (#24577)
|
2 years ago |
colorpicker.js
|
JS refactors (#22227)
|
2 years ago |
common-global.js
|
Support configuration variables on Gitea Actions (#24724)
|
1 year ago |
common-issue-list.js
|
Improve "goto issue by number" button (#24577)
|
2 years ago |
common-issue-list.test.js
|
Improve "goto issue by number" button (#24577)
|
2 years ago |
common-organization.js
|
Fix Org edit page bugs: renaming detection, maxlength (#24161)
|
2 years ago |
contextpopup.js
|
Fix issue and commit status popup padding (#25254)
|
1 year ago |
copycontent.js
|
Add two eslint plugins (#24776)
|
2 years ago |
dropzone.js
|
JS refactors (#22227)
|
2 years ago |
emoji.js
|
JS refactors (#22227)
|
2 years ago |
eventsource.sharedworker.js
|
Fix the JS error "EventSource is not defined" caused by some non-standard browsers (#20584)
|
2 years ago |
file-fold.js
|
Scroll collapsed file into view (#23702)
|
2 years ago |
heatmap.js
|
Localize activity heatmap (except tooltip) (#24131)
|
2 years ago |
imagediff.js
|
Fix various ImageDiff/SVG bugs (#23312)
|
2 years ago |
install.js
|
Fix various bugs for "install" page (#23194)
|
2 years ago |
notification.js
|
Rework notifications list (#24812)
|
2 years ago |
org-team.js
|
Add status indicator on main home screen for each repo (#24638)
|
2 years ago |
pull-view-file.js
|
Improve accessibility when (re-)viewing files (#24817)
|
2 years ago |
repo-branch.js
|
Display warning when user try to rename default branch (#24512)
|
2 years ago |
repo-code.js
|
Change form actions to fetch for submit review box (#25219)
|
1 year ago |
repo-code.test.js
|
Ignore line anchor links with leading zeroes (#21728)
|
2 years ago |
repo-commit.js
|
Fix issue and commit status popup padding (#25254)
|
1 year ago |
repo-common.js
|
Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198)
|
2 years ago |
repo-diff-filetree.js
|
JS refactors (#22227)
|
2 years ago |
repo-diff.js
|
Refactor diffFileInfo / DiffTreeStore (#24998)
|
1 year ago |
repo-editor.js
|
Add popup to hashed comments/pull requests/issues in file editing/adding preview tab (#24040)
|
2 years ago |
repo-findfile.js
|
Refactor branch/tag selector to Vue SFC (#23421)
|
2 years ago |
repo-findfile.test.js
|
Refactor branch/tag selector to Vue SFC (#23421)
|
2 years ago |
repo-graph.js
|
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950)
|
2 years ago |
repo-home.js
|
Sort repo topic labels by name (#24123)
|
2 years ago |
repo-issue-content.js
|
Use flex to align SVG and text (#25163)
|
1 year ago |
repo-issue-list.js
|
Batch delete issue and improve tippy opts (#25253)
|
1 year ago |
repo-issue-pr-form.js
|
JS refactors (#22227)
|
2 years ago |
repo-issue.js
|
Fix sidebar label dropdown divider (#25359)
|
1 year ago |
repo-legacy.js
|
Improve and fix bugs surrounding reactions (#24760)
|
1 year ago |
repo-migrate.js
|
Make repo migration cancelable and fix various bugs (#24605)
|
2 years ago |
repo-migration.js
|
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950)
|
2 years ago |
repo-projects.js
|
Disable `Create column` button while the column name is empty (#25192)
|
1 year ago |
repo-release.js
|
Update JS dependencies, add new eslint rules (#24597)
|
2 years ago |
repo-settings.js
|
Support for status check pattern (#24633)
|
2 years ago |
repo-template.js
|
Add status indicator on main home screen for each repo (#24638)
|
2 years ago |
repo-unicode-escape.js
|
Improve accessibility when (re-)viewing files (#24817)
|
2 years ago |
repo-wiki.js
|
Fix EasyMDE toolbar (#24489)
|
2 years ago |
sshkey-helper.js
|
Use explicit jQuery import, remove unused eslint globals (#18435)
|
3 years ago |
stopwatch.js
|
Move helpers to be prefixed with `gt-` (#22879)
|
2 years ago |
tablesort.js
|
JS refactors (#22227)
|
2 years ago |
tribute.js
|
rename tributeValues to mentionValues (#25375)
|
1 year ago |
user-auth-webauthn.js
|
Fix webauthn regression and improve code (#25113)
|
1 year ago |
user-auth.js
|
Fix OAuth loading state (#24788)
|
2 years ago |
user-settings.js
|
Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950)
|
2 years ago |