You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: custom/conf/app.example.ini
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2550,3 +2550,19 @@ ROUTER = console
2550
2550
;PROXY_URL =
2551
2551
;; Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts.
2552
2552
;PROXY_HOSTS =
2553
+
2554
+
; [actions]
2555
+
;; Enable/Disable actions capabilities
2556
+
;ENABLED = false
2557
+
;; Default address to get action plugins, e.g. the default value means downloading from "https://gitea.com/actions/checkout" for "uses: actions/checkout@v3"
-`DEFAULT_ACTIONS_URL`: **https://gitea.com**: Default address to get action plugins, e.g. the default value means downloading from "https://gitea.com/actions/checkout" for "uses: actions/checkout@v3"
1321
+
1322
+
`DEFAULT_ACTIONS_URL` indicates where should we find the relative path action plugin. i.e. when use an action in a workflow file like
1323
+
1324
+
```yaml
1325
+
name: versions
1326
+
on:
1327
+
push:
1328
+
branches:
1329
+
- main
1330
+
- releases/*
1331
+
jobs:
1332
+
build:
1333
+
runs-on: ubuntu-latest
1334
+
steps:
1335
+
- uses: actions/checkout@v3
1336
+
```
1337
+
1338
+
Now we need to know how to get actions/checkout, this configuration is the default git server to get it. That means we will get the repository via git clone ${DEFAULT_ACTIONS_URL}/actions/checkout and fetch tag v3.
1339
+
1340
+
To help people who don't want to mirror these actions in their git instances, the default value is https://gitea.com
1341
+
To help people run actions totally in their network, they can change the value and copy all necessary action repositories into their git server.
1342
+
1343
+
Of course we should support the form in future PRs like
1344
+
1345
+
```yaml
1346
+
steps:
1347
+
- uses: gitea.com/actions/checkout@v3
1348
+
```
1349
+
1350
+
although Github don't support this form.
1351
+
1317
1352
## Other (`other`)
1318
1353
1319
1354
- `SHOW_FOOTER_BRANDING`: **false**: Show Gitea branding in the footer.
0 commit comments