From 52b364ddbd9ac82b9e6f9c1767db2d6b36165011 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 21 Feb 2023 18:20:13 +0100 Subject: [PATCH] [BRANDING] DEFAULT_ACTIONS_URL = https://codeberg.org --- custom/conf/app.example.ini | 4 ++-- docs/content/doc/advanced/config-cheat-sheet.en-us.md | 6 +++--- modules/setting/actions.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 02b0018575..3aa029022a 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -2564,8 +2564,8 @@ ROUTER = console ; [actions] ;; Enable/Disable actions capabilities ;ENABLED = false -;; 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://codeberg.org/actions/checkout" for "uses: actions/checkout@v3" +;DEFAULT_ACTIONS_URL = https://codeberg.org ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/docs/content/doc/advanced/config-cheat-sheet.en-us.md b/docs/content/doc/advanced/config-cheat-sheet.en-us.md index 36e9919bc7..d9221676d8 100644 --- a/docs/content/doc/advanced/config-cheat-sheet.en-us.md +++ b/docs/content/doc/advanced/config-cheat-sheet.en-us.md @@ -1336,7 +1336,7 @@ PROXY_HOSTS = *.github.com ## Actions (`actions`) - `ENABLED`: **false**: Enable/Disable actions capabilities -- `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" +- `DEFAULT_ACTIONS_URL`: **https://codeberg.org**: Default address to get action plugins, e.g. the default value means downloading from "https://codeberg.org/actions/checkout" for "uses: actions/checkout@v3" `DEFAULT_ACTIONS_URL` indicates where should we find the relative path action plugin. i.e. when use an action in a workflow file like @@ -1356,14 +1356,14 @@ jobs: 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. -To help people who don't want to mirror these actions in their git instances, the default value is https://gitea.com +To help people who don't want to mirror these actions in their git instances, the default value is https://codeberg.org To help people run actions totally in their network, they can change the value and copy all necessary action repositories into their git server. Of course we should support the form in future PRs like ```yaml steps: - - uses: gitea.com/actions/checkout@v3 + - uses: codeberg.org/actions/checkout@v3 ``` although Github don't support this form. diff --git a/modules/setting/actions.go b/modules/setting/actions.go index b11500dab4..a4273c6754 100644 --- a/modules/setting/actions.go +++ b/modules/setting/actions.go @@ -15,7 +15,7 @@ var ( DefaultActionsURL string `ini:"DEFAULT_ACTIONS_URL"` }{ Enabled: false, - DefaultActionsURL: "https://gitea.com", + DefaultActionsURL: "https://codeberg.org", } )