feat: enable gitea actions in forgejo

See: https://docs.gitea.com/usage/actions/quickstart
This commit is contained in:
teutat3s 2023-10-29 23:52:33 +01:00
parent 62e1e0cddc
commit 6a96345760
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,12 @@
name: Flake checks
on: [push]
jobs:
Check:
runs-on: nix-flakes
steps:
- name: Check out repository code
uses: https://code.forgejo.org/actions/checkout@v4
- name: Run flake checks
run: |
nix --print-build-logs --verbose --accept-flake-config flake check

View file

@ -78,6 +78,11 @@
session = { session = {
COOKIE_SECURE = lib.mkForce true; COOKIE_SECURE = lib.mkForce true;
}; };
# See https://forgejo.org/docs/latest/admin/actions/
actions.ENABLED = true;
# In an actions workflow, when uses: does not specify an absolute URL,
# the value of DEFAULT_ACTIONS_URL is prepended to it.
actions.DEFAULT_ACTIONS_URL = "https://code.forgejo.org";
}; };
}; };